Beispiel #1
0
    private void waitForConnection()
    {
        isWaitingForConnection = true;
        TCPLocalConnection.fireTCPStatusChange(ConnectionStatus.Connecting);
        client = server.AcceptTcpClient();
        stream = client.GetStream();

        clientConnected = true;
        TCPLocalConnection.clientConnected(client);
        isWaitingForConnection = false;
        TCPLocalConnection.fireTCPStatusChange(ConnectionStatus.Connected);
    }