]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: sock: start to move some generic socket code to sock.c
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 10:07:22 +0000 (12:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 16:51:36 +0000 (18:51 +0200)
commit18b7df7a2bbc513d58414cd1afd3ec00340a644c
treecd73078eb2f3128d180dc9f960eb3bebe089ad3e
parent1318034317ef14d7640ee242d874290d5dd84418
REORG: sock: start to move some generic socket code to sock.c

The new file sock.c will contain generic code for standard sockets
relying on file descriptors. We currently have way too much duplication
between proto_uxst, proto_tcp, proto_sockpair and proto_udp.

For now only get_src, get_dst and sock_create_server_socket were moved,
and are used where appropriate.
Makefile
include/haproxy/proto_tcp.h
include/haproxy/proto_udp.h
include/haproxy/sock.h [new file with mode: 0644]
src/proto_tcp.c
src/proto_udp.c
src/proto_uxst.c
src/sock.c [new file with mode: 0644]