Add support for TCP/IP connection backlog

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1294 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-11-20 19:24:06 +00:00
parent 14d2342d9e
commit 73a6fc026d
57 changed files with 690 additions and 105 deletions
+5
View File
@@ -118,6 +118,11 @@ examples/poll
CONFIG_EXAMPLE_POLL_DRIPADDR - Default router IP addess
CONFIG_EXAMPLE_POLL_NETMASK - Network mask
In order to for select to work with incoming connections, you
must also select:
CONFIG_NET_TCPBACKLOG - Incoming connections pend in a backlog until accept() is called.
In additional to the target device-side example, there is also
a host-side application in this directory. It can be compiled under
Linux or Cygwin as follows:
+1 -1
View File
@@ -70,6 +70,6 @@ clean:
$(call CLEAN)
distclean: clean
@rm -f Make.dep .depend
@rm -f Make.dep .depend host
-include Make.dep
+1 -1
View File
@@ -156,7 +156,7 @@ int user_start(int argc, char *argv[])
}
#ifdef HAVE_NETPOLL
#if 0 /* select doesn't work for connections yet */
#ifdef CONFIG_NET_TCPBACKLOG
message("user_start: Starting net_listener thread\n");
ret = pthread_create(&tid3, NULL, net_listener, NULL);