Esempio n. 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");
        }
Esempio n. 2
0
        private EndStagingPhaseResponse GetEndStagingPhaseResponse()
        {
            object message = SocketCommunicator.Receive(_socket);

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

            return((ReadResponse)message);
        }