DDVSocket edits

This commit is contained in:
Thulinma 2010-11-08 15:51:34 +01:00
parent b34ee4927a
commit 97b37f1004

View file

@ -66,7 +66,6 @@ bool DDV_write(void * buffer, int todo, int sock){
if (r <= 0){ if (r <= 0){
switch (errno){ switch (errno){
case EWOULDBLOCK: printf("Would block\n"); break; case EWOULDBLOCK: printf("Would block\n"); break;
case EAGAIN: printf("Again\n"); break;
default: default:
socketError = true; socketError = true;
printf("Could not write! %s\n", strerror(errno)); printf("Could not write! %s\n", strerror(errno));
@ -86,7 +85,6 @@ bool DDV_read(void * buffer, int todo, int sock){
if (r <= 0){ if (r <= 0){
switch (errno){ switch (errno){
case EWOULDBLOCK: printf("Read: Would block\n"); break; case EWOULDBLOCK: printf("Read: Would block\n"); break;
case EAGAIN: printf("Read: Again\n"); break;
default: default:
socketError = true; socketError = true;
printf("Could not read! %s\n", strerror(errno)); printf("Could not read! %s\n", strerror(errno));