void acceptedClientConnection(Socket client)
{
_clients.Add(client);
IPEndPoint clientEndPoint = (IPEndPoint)client.RemoteEndPoint;
_log.Info(string.Format("New client connection accepted ({0}:{1})",
clientEndPoint.Address, clientEndPoint.Port));
if (OnClientConnect != null) {
OnClientConnect(this, new TcpSocketEventArgs(client));
}
startReceiving(client);
}