Exemplo n.º 1
0
        //设置序号和解密分组
        public void SetEncodeId(uint serial, uint encodeId, string info, int address)
        {
            nSerial = (UInt16)serial;
            nEncode = (UInt16)encodeId;

            //向服务器确认加密改变
            ClientNet.Instance().GetGameSock().GetGameSender().RetEncode((int)serial, info, address);
        }
Exemplo n.º 2
0
        //初始化句柄
        public static ClientNet Instance()
        {
            if (null == _Instance)
            {
                _Instance = new ClientNet();
            }

            return(_Instance);
        }