public void Init() { Handlers = new HandlersManager(); MatchServerIPs = new Dictionary <int, string>(); DisconnectedMatchServers = new List <int>(); NetworkSocket.RegisterOnDisconnectionCallback(OnDisconnection); }
public void Activate() { // Handlers NetworkHandlers.Add <AuthentificationMessage>(60000, OnAuthentificationRequestReceived); NetworkSocket.RegisterOnDisconnectionCallback(OnConnectionLost); }
public void Init() { Handlers = new HandlersManager(); KnownClients = new Dictionary <string, ClientAccountInfo>(); // TODO : Ecrire une fonction pour charger cette liste à partir d'un fichier / base de données. OnlineClients = new Dictionary <int, ClientAccountInfo>(); DisconnectedClients = new List <int>(); NetworkSocket.RegisterOnDisconnectionCallback(OnDisconnection); }