Esempio n. 1
0
        private SESSION_STATUS m_cStatus;               //会话状态

        public ClientSession(DispatchFactoryBase dispatchFactory)
        {
            this.m_cStatus          = SESSION_STATUS.NO_CONNECT;
            this.m_cDispatchFactory = dispatchFactory;

            this.m_cReceiveBuffer = new StreamBuffer();
            this.m_cSendBuffer    = new StreamBuffer();

            this.m_cSendQueue = new NetQueue <PacketBase>(64 * 256);
            this.m_cSendQueue.Clear();

            this.m_bStartReConnect = false;
        }
Esempio n. 2
0
        private SESSION_STATUS m_cStatus;               //会话状态

        public DummyClientSession(DispatchFactoryBase dispatchFactory)
        {
            this.m_cDispatchFactory = dispatchFactory;
        }