void serv_ClientExited(object sender, ClientConnectedEventArgs e)
 {
     ClientData data = getClient(e.ClientId);
     clients.Remove(data);
 }
Example #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="info"></param>
 private void OnClientExited(ClientConnectedEventArgs info)
 {
     if (ClientExited != null)
         ClientExited(this, info);
 }
 void serv_ClientConnected(object sender, ClientConnectedEventArgs e)
 {
     ClientData cd = new ClientData();
     cd.client_id = e.ClientId;
     clients.Add(cd);
 }