summaryrefslogtreecommitdiff
path: root/src/net/comm.c
diff options
context:
space:
mode:
authorMario Kilies <MarioKilies@GMX.net>2011-01-24 19:06:43 +0100
committerMario Kilies <MarioKilies@GMX.net>2011-01-24 19:06:43 +0100
commit8f0ca3b0b915dcd8d188766c239ad63e399c0868 (patch)
tree45c8b40998abf75e72546bddeb11c6374ee46c2c /src/net/comm.c
parenta24153f14dcc95332b91e70e39028228e9b6c4dc (diff)
Added game loop termination. Commented out debug messages.
Diffstat (limited to 'src/net/comm.c')
-rw-r--r--src/net/comm.c4
1 files changed, 2 insertions, 2 deletions
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