예제 #1
0
 public void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message)
 {
     if (OnDisconnected != null)
     {
         OnDisconnected(this, EventType.DISCONNECTED);
     }
 }
        private void EnsureConnectedCheck(NetworkManager.DisconnectType reason)
        {
            if (ExpectConnected && reason != NetworkManager.DisconnectType.ClientInitiated)
            {
                return;

                List <Simulator> sims = new List <Simulator>();
                lock (Network.Simulators)
                {
                    sims.AddRange(Network.Simulators);
                }
                return;

                ExpectConnected = false;
                foreach (var s in sims)
                {
                    //lock (s)
                    {
                        if (s.Connected)
                        {
                            s.Disconnect(true);
                        }
                    }
                }
                //gridClient = new GridClient();
                //Settings.USE_LLSD_LOGIN = true;
                new Thread(() =>
                {
                    Thread.Sleep(10000);
                    Login(true);
                }).Start();
            }
        }
예제 #3
0
        void onLogout(NetworkManager.DisconnectType type, string message)
        {
            XmlRpcAgencyConnector.MethodName = "XmlRpcAgencyConnector.onLogout";
            XmlRpcAgencyConnector.Params.Clear();
            XmlRpcAgencyConnector.Params.Add(agentName);
            try
            {
                #if DEBUG
                Console.WriteLine("Request: " + XmlRpcAgencyConnector);
                #endif
                XmlRpcResponse response = XmlRpcAgencyConnector.Send(XmlRpcAgencyConnectorUrl);
                #if DEBUG
                Console.WriteLine("Response: " + response);
                #endif

                if (response.IsFault)
                {
                #if DEBUG
                    Console.WriteLine("Fault {0}: {1}", response.FaultCode, response.FaultString);
                #endif
                }
                else
                {
                #if DEBUG
                    Console.WriteLine("Returned: " + response.Value);
                #endif
                }
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception " + e);
            }
        }
예제 #4
0
파일: Events.cs 프로젝트: myronjc/ajaxlife
        public void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message)
        {
            Hashtable item = new Hashtable();

            item.Add("MessageType", "Disconnected");
            item.Add("Reason", reason);
            item.Add("Message", message);
            enqueue(item);
        }
예제 #5
0
 public static void DisconnectHandler(NetworkManager.DisconnectType type, string message)
 {
     if (type == NetworkManager.DisconnectType.NetworkTimeout)
     {
         Console.WriteLine("Network connection timed out, disconnected");
     }
     else if (type == NetworkManager.DisconnectType.ServerInitiated)
     {
         Console.WriteLine("Server disconnected us: " + message);
     }
 }
예제 #6
0
        private void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message)
        {
            if (!this.IsHandleCreated)
            {
                return;
            }

            this.BeginInvoke((MethodInvoker) delegate
            {
                btnLogin.Text = "Login";
            });
        }
예제 #7
0
 private void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message)
 {
     ResetObjects();
     ParcelsDownloaded.Set();
 }
예제 #8
0
 void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message)
 {
     LogText("Disconnected" + (message != null && message != String.Empty ? ": " + message : "."), Color.Black);
 }
 public DisconnectedEventArgs(NetworkManager.DisconnectType reason, String message)
 {
     this.m_Reason = reason;
     this.m_Message = message;
 }
 public SimDisconnectedEventArgs(Simulator simulator, NetworkManager.DisconnectType reason)
 {
     this.m_Simulator = simulator;
     this.m_Reason = reason;
 }
예제 #11
0
 void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message)
 {
     ParcelsDownloaded.Set();
 }
예제 #12
0
 void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message)
 {
     ClearState();
 }
 public ClientDisconnectEventArgs(NetworkManager.DisconnectType type, string message)
 {
     this.type = type;
     this.message = message;
 }
예제 #14
0
 public ClientDisconnectEventArgs(NetworkManager.DisconnectType type, string message)
 {
     this.type    = type;
     this.message = message;
 }
예제 #15
0
 public void disconnectedCallback(NetworkManager.DisconnectType reason, string message)
 {
     m_log.ErrorFormat("[CONNECTION]: Disconnected{0}: Message:{1}", reason.ToString(), message);
 }
예제 #16
0
 void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message)
 {
     // Clear out current state
     ClearState();
 }