Beispiel #1
0
        public void OnReceiveData(TcpServerConnection _connection)
        {
            connection = _connection;
            string data = readStream(connection.Socket);
            ProcessCommand(data);

            if (debugging && data != null)
            {
                guiThread.AddLog("Received from Client:" + data);
                data = null;
            }
        }
Beispiel #2
0
 public void OnConnect(TcpServerConnection _connection)
 {
     connection = _connection;
     SendHeader();
     guiThread.AddLog("Client Connected");
 }