Searched refs:interval_sec (Results 1 – 3 of 3) sorted by relevance
/system/core/adb/ |
D | sysdeps_unix.cpp | 19 bool set_tcp_keepalive(borrowed_fd fd, int interval_sec) { in set_tcp_keepalive() argument 20 int enable = (interval_sec > 0); in set_tcp_keepalive() 31 if (adb_setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &interval_sec, sizeof(interval_sec))) { in set_tcp_keepalive() 35 if (adb_setsockopt(fd, IPPROTO_TCP, TCP_KEEPALIVE, &interval_sec, sizeof(interval_sec))) { in set_tcp_keepalive() 42 if (adb_setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, &interval_sec, sizeof(interval_sec))) { in set_tcp_keepalive()
|
D | sysdeps_win32.cpp | 1253 bool set_tcp_keepalive(borrowed_fd fd, int interval_sec) { in set_tcp_keepalive() argument 1263 keepalive.onoff = (interval_sec > 0); in set_tcp_keepalive() 1264 keepalive.keepalivetime = interval_sec * 1000; in set_tcp_keepalive() 1265 keepalive.keepaliveinterval = interval_sec * 1000; in set_tcp_keepalive()
|
D | sysdeps.h | 718 bool set_tcp_keepalive(borrowed_fd fd, int interval_sec);
|