[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5382 - GNUnet/src/util/network
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5382 - GNUnet/src/util/network |
Date: |
Sun, 29 Jul 2007 21:22:48 -0600 (MDT) |
Author: grothoff
Date: 2007-07-29 21:22:48 -0600 (Sun, 29 Jul 2007)
New Revision: 5382
Modified:
GNUnet/src/util/network/io.c
GNUnet/src/util/network/select.c
Log:
fx
Modified: GNUnet/src/util/network/io.c
===================================================================
--- GNUnet/src/util/network/io.c 2007-07-30 03:18:32 UTC (rev 5381)
+++ GNUnet/src/util/network/io.c 2007-07-30 03:22:48 UTC (rev 5382)
@@ -344,7 +344,8 @@
return (pos == 0) ? NO : YES;
}
GE_LOG_STRERROR (s->ectx,
- GE_ERROR | GE_USER | GE_BULK | GE_DEVELOPER,
"recvfrom");
+ GE_ERROR | GE_USER | GE_BULK | GE_DEVELOPER,
+ "recvfrom");
*read = pos;
return SYSERR;
}
Modified: GNUnet/src/util/network/select.c
===================================================================
--- GNUnet/src/util/network/select.c 2007-07-30 03:18:32 UTC (rev 5381)
+++ GNUnet/src/util/network/select.c 2007-07-30 03:22:48 UTC (rev 5382)
@@ -643,17 +643,17 @@
msg = MALLOC (pending);
size = 0;
- if (SYSERR == socket_recv_from (sh->listen_sock,
- NC_Nonblocking,
- msg,
- pending,
- &size,
- clientAddr,
- &lenOfIncomingAddr))
+ ret = socket_recv_from (sh->listen_sock,
+ NC_Nonblocking,
+ msg,
+ pending,
+ &size,
+ clientAddr, &lenOfIncomingAddr);
+ if (ret == SYSERR)
{
socket_close (sh->listen_sock);
}
- else
+ else if (ret == OK)
{
/* validate msg format! */
const MESSAGE_HEADER *hdr;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5382 - GNUnet/src/util/network,
gnunet <=