Beispiel #1
0
 private static string OnDisconnect(EasyTcpClient c)
 => $"[INFO] Client disconnected [id: {c.GetHashCode()}]";
Beispiel #2
0
        /*
         * Logging messages
         */

        private static string OnConnect(EasyTcpClient c)
        => $"[INFO] Client connected [id: {c.GetHashCode()} address: {(IPEndPoint)c.BaseSocket.RemoteEndPoint}]";