Exemple #1
0
        private void HandleConnection(object receivingSocketObj)
        {
            Socket receivingSocket = (Socket)receivingSocketObj;

            while (receivingSocket.Connected)
            {
                BaseMessage message = SocketCommunicator.Receive(receivingSocket);

                CommandMessage commandMessage = (CommandMessage)message;
                commandMessage.HandleCommandMessage(this, receivingSocket);
            }
            Console.WriteLine("Conn closed");
        }
Exemple #2
0
        private EndStagingPhaseResponse GetEndStagingPhaseResponse()
        {
            object message = SocketCommunicator.Receive(_socket);

            return((EndStagingPhaseResponse)message);
        }
Exemple #3
0
        private ReadResponse GetReadResponse()
        {
            object message = SocketCommunicator.Receive(_socket);

            return((ReadResponse)message);
        }