public Sender() { m_NetworkStream = null; m_Reader = new NetworkReader(); m_Writer = new NetworkWriter(); // Messages m_Handshake = new HandshakeMessage(); m_Connected = new ConnectedMessage(); m_Command = new CommandMessage(); m_State = ConnectionState.Disconnected; }
public Responder() { m_NetworkStream = null; m_Reader = new NetworkReader(); m_Writer = new NetworkWriter(); // Messages m_Handshake = new HandshakeMessage(); m_Command = new CommandMessage(); m_Connected = new ConnectedMessage(); m_Disconnected = new DisconnectedMessage(); m_SendError = new SendErrorMessage(); }