private void OnConnectionAccepted(IPEndPoint endPoint, Socket socket) { var conn = TcpConnection.CreateAcceptedTcpConnection(Guid.NewGuid(), endPoint, socket, verbose: true); this.Log().Info("TCP connection accepted: [{0}, L{1}, {2:B}].", conn.RemoteEndPoint, conn.LocalEndPoint, conn.ConnectionId); conn.ConnectionClosed += ConnectionClosed; conn.ReceiveAsync(OnDataReceived); }