Exemplo n.º 1
0
 public static void OnClientDisconnect(ClientDisconnectEventArgs e)
 {
     if (ClientDisconnect != null)
     {
         ClientDisconnect(new object(), e);
     }
 }
Exemplo n.º 2
0
 public void onClientDisconnect(object o, ClientDisconnectEventArgs e)
 {
     if (RemoteIP == e.RemoteIP)
     {
         MessageBox.Show(ClientName + " has been disconnected from the server");
         this.Close();
     }
 }
Exemplo n.º 3
0
 public void onClientDisconnect(object o, ClientDisconnectEventArgs e)
 {
     for (int i = 0; i < listView3.Items.Count; i++)
     {
         if (listView3.Items[i].SubItems[3].Text == e.RemoteIP)
             listView3.Items.RemoveAt(i);
     }
 }
Exemplo n.º 4
0
        private void Disconnect()
        {
            ClientDisconnectEventArgs e1 = new ClientDisconnectEventArgs(_socket.RemoteEndPoint.ToString());
            ClientDisconnectEvent.OnClientDisconnect(e1);

            settings.ClientsConnected--;
            Logger.AddLog(new LogInfo("Client disconnected", _socket.RemoteEndPoint.ToString().Split(':')[0]));

            _socket.Disconnect(false);
            if (DisconnectHandle != null) DisconnectHandle(this);
            MaxConnections.Disconnect(_socket.RemoteEndPoint);
        }
Exemplo n.º 5
0
 public void onClientDisconnect(object o, ClientDisconnectEventArgs e)
 {
     Speak("A client has been disconnected");
 }
Exemplo n.º 6
0
 public static void OnClientDisconnect(ClientDisconnectEventArgs e)
 {
     if (ClientDisconnect != null)
         ClientDisconnect(new object(), e);
 }