]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG/MEDIUM: move the default accept function from sockstream to protocols.c
authorWilly Tarreau <w@1wt.eu>
Mon, 7 May 2012 19:22:09 +0000 (21:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 19:28:15 +0000 (21:28 +0200)
commitbbebbbff83255af915efa7dfe2e40a01676e519c
treeb1d59566b5dc174a3d632c1809fdf417115a11a2
parent26d8c59f0b32942cfb3391c40336305612d4eae6
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.
include/proto/protocols.h
include/proto/stream_sock.h
src/proto_tcp.c
src/proto_uxst.c
src/protocols.c
src/stream_sock.c