Home
last modified time | relevance | path

Searched refs:interval_sec (Results 1 – 3 of 3) sorted by relevance

/system/core/adb/
Dsysdeps_unix.cpp19 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()
Dsysdeps_win32.cpp1253 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()
Dsysdeps.h718 bool set_tcp_keepalive(borrowed_fd fd, int interval_sec);