private void OnReceiveCallback(IAsyncResult result) { Nstream.EndRead(result); byte[] buff = new byte[_buffer.Length]; _buffer.CopyTo(buff, 0); Packet packet = buff.ToPacket(); GamePacketHandlerAuth.HandlePacket(packet, this); new System.Threading.Thread(Read).Start(); }
public AuthThread(GamePacketHandlerAuth gamePacketHandlerAuth, Config.Config config) { _gamePacketHandlerAuth = gamePacketHandlerAuth; _config = config; _awaitingAccounts = new Dictionary <string, Tuple <AccountContract, SessionKey, DateTime> >(); }
public AuthThread(GamePacketHandlerAuth gamePacketHandlerAuth, Config.Config config) { _gamePacketHandlerAuth = gamePacketHandlerAuth; _config = config; }