From 8f0ca3b0b915dcd8d188766c239ad63e399c0868 Mon Sep 17 00:00:00 2001 From: Mario Kilies Date: Mon, 24 Jan 2011 19:06:43 +0100 Subject: Added game loop termination. Commented out debug messages. --- src/net/comm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/comm.c') diff --git a/src/net/comm.c b/src/net/comm.c index 7f9c6c4..042cb00 100644 --- a/src/net/comm.c +++ b/src/net/comm.c @@ -25,7 +25,7 @@ bool net_recv(const int sock, const msg_type_t type) recv(sock, &m.hdr, sizeof(msg_header_t), 0); // Remove message header from socket recv(sock, m.payload, m.hdr.payload_length, 0);// And then receive the payload - printf("net_recv: received msg type %d with payload length %d\n", m.hdr.type, m.hdr.payload_length); + //printf("net_recv: received msg type %d with payload length %d\n", m.hdr.type, m.hdr.payload_length); switch(type) { @@ -97,7 +97,7 @@ bool net_send(const int sock, const msg_type_t type, const void *data) break; } - printf("net_send: sending msg type %d with payload length %d\n", m.hdr.type, m.hdr.payload_length); + //printf("net_send: sending msg type %d with payload length %d\n", m.hdr.type, m.hdr.payload_length); send(sock, &m, sizeof(msg_header_t), 0); // Send message header first send(sock, m.payload, m.hdr.payload_length, 0); // Then send payload -- cgit v1.2.3