static void Main(string[] args)
        {
            ServerHandlePackets.InitializePackets();
            TCPServer server = new TCPServer();

            server.InitNetwork();
            Console.ReadLine();
        }
        private void ReceiveDataCallback(IAsyncResult result)
        {
            try
            {
                int readbytes = myStream.EndRead(result);
                if (readbytes <= 0)
                {
                    CloseConnection();
                    return;
                }
                byte[] newBytes = new byte[readbytes];
                System.Buffer.BlockCopy(readBuffer, 0, newBytes, 0, readbytes);

                ServerHandlePackets.HandleData(connectionID, newBytes);

                myStream.BeginRead(readBuffer, 0, socket.ReceiveBufferSize, ReceiveDataCallback, null);
            }
            catch (Exception)
            {
                CloseConnection();
                throw;
            }
        }