public static void Disconnect() { if (!inited) { throw new Exception("Run BoogieCore.Init() first."); } realmListClient = null; if (worldServerClient != null) { // Stop the WS thread and wait till it ends. worldServerClient.StopThread(false); // causes deadlocks atm. worldServerClient = null; } }
public static void ConnectToWorldServer(IPEndPoint ep) { if (!inited) { throw new Exception("Run BoogieCore.Init() first."); } if (worldServerClient != null) { throw new Exception("Already connected?"); } if (realmListClient.mUsername.Length > 2 && realmListClient.K.Length >= 16) { worldServerClient = new WorldServerClient(ep, realmListClient.mUsername, realmListClient.K); } else { Log(LogType.Error, "Unable to login to Game server! Unknown error occured. Check above!"); } }
public static void Disconnect() { if (!inited) throw new Exception("Run BoogieCore.Init() first."); realmListClient = null; if (worldServerClient != null) { // Stop the WS thread and wait till it ends. worldServerClient.StopThread(false); // causes deadlocks atm. worldServerClient = null; } }
public static void ConnectToWorldServer(IPEndPoint ep) { if (!inited) throw new Exception("Run BoogieCore.Init() first."); if (worldServerClient != null) throw new Exception("Already connected?"); if (realmListClient.mUsername.Length > 2 && realmListClient.K.Length >= 16) worldServerClient = new WorldServerClient(ep, realmListClient.mUsername, realmListClient.K); else Log(LogType.Error, "Unable to login to Game server! Unknown error occured. Check above!"); }