Searched refs:linger (Results 1 - 8 of 8) sorted by relevance

/haiku/src/tests/system/network/sock/
H A Dmain.c46 long linger = -1; /* 0 or positive turns on option */ variable
249 linger = atol(optarg);
317 if (udp && linger >= 0)
423 " -L n SO_LINGER option, n = linger time\n"
H A Dsockopts.c40 struct linger ling;
262 if (linger >= 0 && doall && udp == 0) {
264 ling.l_linger = linger; /* 0 for abortive disconnect */
271 optlen = sizeof(struct linger);
275 if (ling.l_onoff == 0 || ling.l_linger != linger)
279 fprintf(stderr, "linger %s, time = %d\n",
H A Dsock.h86 extern long linger;
/haiku/src/add-ons/kernel/network/stack/
H A Dnet_socket.cpp96 linger = 0;
378 kprintf(" linger: %d\n", socket->linger);
729 socket->linger = parent->linger;
1521 if (length < (int)sizeof(struct linger))
1524 struct linger* linger = (struct linger*)value; local
1525 if (linger
[all...]
/haiku/headers/private/net/
H A Dnet_socket.h34 int linger; member in struct:net_socket
/haiku/headers/posix/sys/
H A Dsocket.h62 #define SO_LINGER 0x00000200 /* linger on close if data present */
83 struct linger { struct
/haiku/src/tests/system/network/tcp_shell/
H A Dtcp_shell.cpp489 socket->linger = parent->linger;
/haiku/src/add-ons/kernel/network/protocols/tcp/
H A DTCPEndpoint.cpp541 // TODO: what about linger in case of SYNCHRONIZE_SENT?
552 TRACE("Close(): Lingering for %i secs", socket->linger);
554 bigtime_t maximum = absolute_timeout(socket->linger * 1000000LL);

Completed in 195 milliseconds