private void PostMsg(string msg, int msgID, uint gcnetID, UserPlatform eplat)
        {
            GBuffer buffer = this._sdkCallbackQueuePool.Pop();

            buffer.Write(gcnetID);
            buffer.Write(( int )eplat);
            buffer.WriteUTF8E(msg);
            buffer.position = 0;
            buffer.data     = msgID;
            this._sdkCallbackQueue.Push(buffer);
        }
示例#2
0
        /// <summary>
        /// 该方法为异步方法
        /// </summary>
        public void SendToInsertData(string uid, LoginUserInfo loginInfo, uint gcNetID)
        {
            GBuffer gBuffer = this._dbCallbackQueuePool.Pop();

            gBuffer.Write(gcNetID);
            gBuffer.Write(loginInfo.plat);
            gBuffer.WriteUTF8(uid);
            gBuffer.WriteUTF8(loginInfo.uin);
            gBuffer.WriteUTF8E(loginInfo.sessionid);
            gBuffer.position = 0;
            gBuffer.data     = 1;
            this._dbCallbackQueue.Push(gBuffer);
        }