Esempio n. 1
0
        public ClientBuffer()
        {
            m_rawBuffer = new MsgBuffer();
            m_msgBuffer = new MsgBuffer();
            //m_sendTmpBA = new ByteBuffer();
            m_sendTmpBuffer = new MsgBuffer();
            m_socketSendBA = new ByteBuffer();
            //m_socketSendBA.m_id = 1000;

            //m_dynBuff = new DynamicBuffer<byte>(8096);
            m_unCompressHeaderBA = new ByteBuffer();
            m_sendData = new ByteBuffer();
            m_tmpData = new ByteBuffer(4);
            m_tmp1fData = new ByteBuffer(4);

            m_readMutex = new MMutex(false, "ReadMutex");
            m_writeMutex = new MMutex(false, "WriteMutex");

#if MSG_ENCRIPT
            m_cryptContext = new CryptContext();
#endif
        }
Esempio n. 2
0
        public ClientBuffer()
        {
            m_rawBuffer = new MsgBuffer();
            m_msgBuffer = new MsgBuffer();
            //m_sendTmpBA = new ByteBuffer();
            m_sendTmpBuffer = new MsgBuffer();
            m_socketSendBA  = new ByteBuffer();
            //m_socketSendBA.m_id = 1000;

            //m_dynBuff = new DynamicBuffer<byte>(8096);
            m_unCompressHeaderBA = new ByteBuffer();
            m_sendData           = new ByteBuffer();
            m_tmpData            = new ByteBuffer(4);
            m_tmp1fData          = new ByteBuffer(4);

            m_readMutex  = new MMutex(false, "ReadMutex");
            m_writeMutex = new MMutex(false, "WriteMutex");

#if MSG_ENCRIPT
            m_cryptContext = new CryptContext();
#endif
        }
Esempio n. 3
0
        protected bool m_canEnterWait;  // 是否可以进入等待

        public MCondition(string name)
        {
            m_pMMutex = new MMutex(false, name);
            m_pMEvent = new MEvent(false);
            m_canEnterWait = true;      // 允许进入等待状态
        }
Esempio n. 4
0
        protected bool m_canEnterWait;  // 是否可以进入等待

        public MCondition(string name)
        {
            m_pMMutex      = new MMutex(false, name);
            m_pMEvent      = new MEvent(false);
            m_canEnterWait = true;      // 允许进入等待状态
        }