Exemplo n.º 1
0
        public object ReceiveMessage()
        {
            object message = NetworkUtilities.Receive(Client);

            if (message == null)
            {
                Stop();
            }
            return(message);
        }
Exemplo n.º 2
0
        public object ReceiveMessage(ClientConnection client)
        {
            object dataReceived = NetworkUtilities.Receive(client);

            if (dataReceived == null)
            {
                throw new System.InvalidOperationException();
            }
            return(dataReceived);
        }