commit | bbebbbff83255af915efa7dfe2e40a01676e519c | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon May 07 21:22:09 2012 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue May 08 21:28:15 2012 +0200 |
tree | b1d59566b5dc174a3d632c1809fdf417115a11a2 | |
parent | 26d8c59f0b32942cfb3391c40336305612d4eae6 [diff] |
REORG/MEDIUM: move the default accept function from sockstream to protocols.c The previous sockstream_accept() function uses nothing from sockstream, and is totally irrelevant to stream interfaces. Move this to the protocols.c file which handles listeners and protocols, and call it listener_accept(). It now makes much more sense that the code dealing with listen() also handles accept() and passes it to upper layers.