|
From: | address@hidden |
Subject: | Re: [lwip-users] Non-blocking netconn callback and TCP accept backlog |
Date: | Sun, 15 Jul 2012 12:29:54 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 |
Nick Brereton wrote:
As I have understood it data should not start flowing until I have accepted the connection (presumably completion of the handshake should be delayed until the netconn_accept call, thus preventing the client from sending any data?) and the connection should be sitting in the tcp listen queue.
I think it's rather different and the handshake is completed directly before the 'accept' callback is called. That would mean the client can send data even while you have enqueued the new connection. I haven't really worked that way, though. I also don't know how other socket implementations handle this...
Simon
[Prev in Thread] | Current Thread | [Next in Thread] |