Пример #1
0
        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;
        }
Пример #2
0
        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();
        }