summaryrefslogtreecommitdiff
path: root/nuttx/net/socket.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-19 23:09:39 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-19 23:09:39 +0000
commit0cc9b5ef69aa200c2610f3e87281fe9aa9d7d389 (patch)
tree3b0f4ca1b8066bdd68f41c4640f074c9b5535ffa /nuttx/net/socket.c
parentbefc37ada0b901ad7c315e4089976508396d496b (diff)
downloadpx4-nuttx-0cc9b5ef69aa200c2610f3e87281fe9aa9d7d389.tar.gz
px4-nuttx-0cc9b5ef69aa200c2610f3e87281fe9aa9d7d389.tar.bz2
px4-nuttx-0cc9b5ef69aa200c2610f3e87281fe9aa9d7d389.zip
Add TCP readahead logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@387 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/socket.c')
-rw-r--r--nuttx/net/socket.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/net/socket.c b/nuttx/net/socket.c
index 5efc86df9..d7c21d01b 100644
--- a/nuttx/net/socket.c
+++ b/nuttx/net/socket.c
@@ -135,7 +135,10 @@ int socket(int domain, int type, int protocol)
psock->s_type = type;
psock->s_conn = NULL;
- /* Allocate the appropriate connection structure */
+ /* Allocate the appropriate connection structure. This reserves the
+ * the connection structure is is unallocated at this point. It will
+ * not actually be initialized until the socket is connected.
+ */
switch (type)
{