From bb03e867718cac28d08ff32a7c2a1b7d60152c3e Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 20 Nov 2008 19:24:06 +0000 Subject: [PATCH] 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 --- Documentation/NuttX.html | 5 ++++- Documentation/NuttxPortingGuide.html | 5 +++++ Documentation/NuttxUserGuide.html | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index 39ba8dcc35..3dd0d53fab 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -8,7 +8,7 @@

NuttX RTOS

-

Last Updated: November 17, 2008

+

Last Updated: November 20, 2008

@@ -1212,6 +1212,9 @@ nuttx-0.3.19 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> and not recv() is in-place when a TCP/IP packet is received, the packet is placed into a read-ahead buffer. However, the old contents of the read-ahead buffer were not being cleared and old data would contaminate the newly received buffer. + * Implemented support for connection backlog. The size of the backlog is specified by the + second argument of the standard listen() API. Hooks are provided to support poll()/select() + waiting for connections, with a subsequent call to accept() to use the backlogged connection. pascal-0.1.3 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index f32138fcdc..0d3b978d0b 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -1594,6 +1594,11 @@ The system can be re-made subsequently by just typing make.
  • CONFIG_NET_TCP_CONNS: Maximum number of TCP connections (all tasks).
  • +
  • + CONFIG_NET_TCPBACKLOG: + Incoming connections pend in a backlog until accept() is called. + The size of the backlog is selected when listen() is called. +
  • CONFIG_NET_TCP_READAHEAD_BUFSIZE: Size of TCP read-ahead buffers
  • diff --git a/Documentation/NuttxUserGuide.html b/Documentation/NuttxUserGuide.html index e843908a75..0dfa64a87b 100644 --- a/Documentation/NuttxUserGuide.html +++ b/Documentation/NuttxUserGuide.html @@ -6069,6 +6069,14 @@ interface of the same name.
  • CONFIG_NSOCKET_DESCRIPTORS Defined to be greater than 0
  • CONFIG_NET_NTCP_READAHEAD_BUFFERS Defined to be greater than zero
  • +

    + In order to for select to work with incoming connections, you must also select: +

    +

    Input Parameters: