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(); } }
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); } }
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); }
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); } }
private void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message) { if (!this.IsHandleCreated) { return; } this.BeginInvoke((MethodInvoker) delegate { btnLogin.Text = "Login"; }); }
private void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message) { ResetObjects(); ParcelsDownloaded.Set(); }
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; }
void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message) { ParcelsDownloaded.Set(); }
void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message) { ClearState(); }
public ClientDisconnectEventArgs(NetworkManager.DisconnectType type, string message) { this.type = type; this.message = message; }
public void disconnectedCallback(NetworkManager.DisconnectType reason, string message) { m_log.ErrorFormat("[CONNECTION]: Disconnected{0}: Message:{1}", reason.ToString(), message); }
void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message) { // Clear out current state ClearState(); }