1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-22 02:22:57 +00:00

Option accept-timeout (listen-timeout)

This commit is contained in:
Gerhard Rieger 2020-12-31 14:56:04 +01:00
parent aa2b9c00b2
commit 13ac417410
8 changed files with 124 additions and 1 deletions

3
xio.h
View file

@ -182,6 +182,9 @@ typedef struct single {
#if _WITH_SOCKET
struct {
struct timeval connect_timeout; /* how long to hang in connect() */
#if WITH_LISTEN
struct timeval accept_timeout; /* how long to wait for incoming connection */
#endif
union sockaddr_union la; /* local socket address */
bool null_eof; /* with dgram: empty packet means EOF */
bool dorange;