Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        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!");
            }
        }
Ejemplo n.º 3
0
        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;
            }
        }
Ejemplo n.º 4
0
        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!");
        }