summaryrefslogtreecommitdiff
path: root/nuttx/net/sendto.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-08 21:54:43 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-08 21:54:43 +0000
commit255e1fe83691a2c5a3328bcec13e2bce0a140696 (patch)
tree9868873a70e46df85e9ec0cf7c599239808b8808 /nuttx/net/sendto.c
parentb084f0f30622b823a1cb99324505aaca673ccef1 (diff)
downloadpx4-nuttx-255e1fe83691a2c5a3328bcec13e2bce0a140696.tar.gz
px4-nuttx-255e1fe83691a2c5a3328bcec13e2bce0a140696.tar.bz2
px4-nuttx-255e1fe83691a2c5a3328bcec13e2bce0a140696.zip
Added receive timeout via setsockopt(SO_RCVTIMEO)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@336 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/sendto.c')
-rw-r--r--nuttx/net/sendto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/net/sendto.c b/nuttx/net/sendto.c
index 1917ebf58..eef1a31b4 100644
--- a/nuttx/net/sendto.c
+++ b/nuttx/net/sendto.c
@@ -58,9 +58,9 @@
struct sendto_s
{
- sem_t st_sem;
- uint16 st_buflen;
- const char *st_buffer;
+ sem_t st_sem; /* Semaphore signals sendto completion */
+ uint16 st_buflen; /* Length of send buffer (error if <0) */
+ const char *st_buffer; /* Pointer to send buffer */
};
/****************************************************************************