示例#1
0
        public WorldSocket(Socket socket) : base(socket)
        {
            _connectType     = ConnectionType.Realm;
            _serverChallenge = new byte[0].GenerateRandomKey(16);
            _worldCrypt      = new WorldCrypt();

            _encryptKey = new byte[16];
        }
示例#2
0
        public WorldSocket(Socket socket) : base(socket)
        {
            _connectType     = ConnectionType.Realm;
            _serverChallenge = new byte[0].GenerateRandomKey(16);
            _worldCrypt      = new WorldCrypt();

            _encryptKey = new byte[16];

            _headerBuffer = new SocketBuffer(HeaderSize);
            _packetBuffer = new SocketBuffer(0);
        }