/// <summary>
        /// Destroys the server.
        /// </summary>
        /// <returns><c>true</c>, if server was destroyed, <c>false</c> otherwise.</returns>
        /// <param name="s">NetServer to destroy</param>
        public static bool DestroyServer(NetServer s)
        {
            if (mServers.Contains(s) == false)
            {
                Debug.Log("NetManager::DestroyServer( " + s.mSocket.ToString() + ") - Server does not exist!");
                return(false);
            }

            s.DisconnectAllClients();

            NetworkTransport.RemoveHost(s.mSocket);

            mServers.Remove(s);

            return(true);
        }
        void Start()
        {
            var config = new ConnectionConfig();

            config.AddChannel(QosType.Reliable);

            NetManager.mConnectionConfig = config;

            NetManager.Init();

            mServer = NetManager.CreateServer(10, 7777);
            mClient = NetManager.CreateClient();
            mClient.Connect("127.0.0.1", 7777);

            // Server Event Callbacks
            mServer.OnConnection    = ServerConnection;
            mServer.OnData          = ServerData;
            mServer.OnDisconnection = ServerDisconnect;

            // Client Event Callbacks
            mClient.OnConnection    = ClientConnection;
            mClient.OnData          = ClientData;
            mClient.OnDisconnection = ClientDisconnect;
        }