From 6836c54737e924646aae6506e1f7af8b5c231663 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Sun, 23 Aug 2020 14:41:38 +0200 Subject: [PATCH] improve debug output --- examples/app/app.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/app/app.nim b/examples/app/app.nim index 2967f86..4276e54 100644 --- a/examples/app/app.nim +++ b/examples/app/app.nim @@ -226,7 +226,7 @@ proc runApp(serverHostname: string, serverPort: Port, peerId: string, let (hasSock, sock) = await punchdConn.inConnections.read if not hasSock: break - echo "got connection" + echo "accepted!" let msg = await sock.recv(1000) echo "received message: ", msg await sock.send("pong") @@ -237,6 +237,7 @@ proc runApp(serverHostname: string, serverPort: Port, peerId: string, Port(1234)) asyncCheck handleServerMessages(serverConn) let sock = await punchHole(punchdConn, serverConn, peerId, otherPeerId) + echo "connected!" await sock.send("ping") let msg = await sock.recv(1000) echo "received message: ", msg