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"); }
private EndStagingPhaseResponse GetEndStagingPhaseResponse() { object message = SocketCommunicator.Receive(_socket); return((EndStagingPhaseResponse)message); }
private ReadResponse GetReadResponse() { object message = SocketCommunicator.Receive(_socket); return((ReadResponse)message); }