From ed8008f956d8554e92f6e61578feca786e3fac4f Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 8 Nov 2010 01:04:11 +0100 Subject: [PATCH] Nog een poging... --- util/ddv_socket.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/util/ddv_socket.cpp b/util/ddv_socket.cpp index 6ab42140..1217293a 100644 --- a/util/ddv_socket.cpp +++ b/util/ddv_socket.cpp @@ -38,12 +38,18 @@ int DDV_Accept(int sock){ bool DDV_write(void * buffer, int width, int count, int sock){ bool r = (send(sock, buffer, width*count, 0) == width*count); - if (!r){socketError = true;} + if (!r){ + socketError = true; + printf("Could not write! %s\n", strerror(errno)); + } return r; } bool DDV_read(void * buffer, int width, int count, int sock){ bool r = (recv(sock, buffer, width*count, 0) == width*count); - if (!r){socketError = true;} + if (!r){ + socketError = true; + printf("Could not read! %s\n", strerror(errno)); + } return r; }