NLog.TcpServerSocket.acceptedClientConnection C# (CSharp) Method

acceptedClientConnection() private method

private acceptedClientConnection ( Socket client ) : void
client Socket
return void
        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);
        }