diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-20 19:24:06 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-20 19:24:06 +0000 |
commit | 8cd8607510ca423089ca1b0266c22aeee685dcee (patch) | |
tree | 826e23653aecaf5f85d08ae94f3651a35634ace4 /nuttx/examples | |
parent | f4f6f592170662f664998c9a1ae938bda35cf8d9 (diff) | |
download | px4-nuttx-8cd8607510ca423089ca1b0266c22aeee685dcee.tar.gz px4-nuttx-8cd8607510ca423089ca1b0266c22aeee685dcee.tar.bz2 px4-nuttx-8cd8607510ca423089ca1b0266c22aeee685dcee.zip |
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
Diffstat (limited to 'nuttx/examples')
-rw-r--r-- | nuttx/examples/README.txt | 5 | ||||
-rw-r--r-- | nuttx/examples/poll/Makefile | 2 | ||||
-rw-r--r-- | nuttx/examples/poll/poll_main.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/nuttx/examples/README.txt b/nuttx/examples/README.txt index f6528e5f4..f2a597800 100644 --- a/nuttx/examples/README.txt +++ b/nuttx/examples/README.txt @@ -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: diff --git a/nuttx/examples/poll/Makefile b/nuttx/examples/poll/Makefile index b52719912..e91f5018c 100644 --- a/nuttx/examples/poll/Makefile +++ b/nuttx/examples/poll/Makefile @@ -70,6 +70,6 @@ clean: $(call CLEAN) distclean: clean - @rm -f Make.dep .depend + @rm -f Make.dep .depend host -include Make.dep diff --git a/nuttx/examples/poll/poll_main.c b/nuttx/examples/poll/poll_main.c index 713c77e3a..dbf5eec65 100644 --- a/nuttx/examples/poll/poll_main.c +++ b/nuttx/examples/poll/poll_main.c @@ -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); |