Example #1
0
        public bool AddGameServer <GameServerSocketType>(ServerInterface <T, GameServerSocketType> server) where GameServerSocketType : NetSocket, new()
        {
            NetSocket socket = new GameServerSocketType();

            socket.Connect(server.LocalEndPoint);
            ServerConnection <T> connection = server.CreateConnection(socket, true, true);

            if (connection is not null)
            {
                m_rServers.Add(connection);
                return(true);
            }
            return(false);
        }