public void Client_Remote(Client_TCP client) { foreach(Client_TCP temp in Clients) { if(temp == client) { if (client.socket.Connected) { client.Shutdown(); } Clients.Remove(temp); return; } } }
public void Send(Client_TCP client, string msg) { if(client.socket.Connected) { client.Send(msg); } else { client.Shutdown(); } }
public void RemoveClient(Client_TCP client) { Clients.Remove(client); client.Shutdown(); }