mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
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:
@@ -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:
|
||||
|
||||
@@ -70,6 +70,6 @@ clean:
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
@rm -f Make.dep .depend
|
||||
@rm -f Make.dep .depend host
|
||||
|
||||
-include Make.dep
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user