Esempio n. 1
0
        private static void OnClientConnected(RedirectServerConnection Connection)
        {
            ClientHandlerServerInfo HandlerServer = ClientHandlerManager.PickServer();

            //If we have a valid address, then we send it, otherwise we just skip this part and disconnect
            //the client.
            if (HandlerServer.Address != IPAddress.None)
            {
                Connection.Send(HandlerServer.Address, HandlerServer.Port);
            }

            //Once we have sent the address of the server to the client, we close the connection.
            Connection.Dispose();
        }
 public void UpdateClientHandlerServerUserCount(IPAddress Address, ushort Port, uint UserCount)
 {
     ClientHandlerManager.UpdateClientHandlerServerUserCount(Address, Port, UserCount);
 }
 public void RegisterClientHandlerServer(IPAddress Address, ushort Port)
 {
     ClientHandlerManager.RegisterClientHandlerServer(Address, Port);
 }