Lines Matching refs:timeout_ms
54 int settimeo(int fd, int timeout_ms) in settimeo() argument
58 if (timeout_ms > 0) { in settimeo()
59 timeout.tv_sec = timeout_ms / 1000; in settimeo()
60 timeout.tv_usec = (timeout_ms % 1000) * 1000; in settimeo()
81 socklen_t addrlen, int timeout_ms, bool reuseport) in __start_server() argument
92 if (settimeo(fd, timeout_ms)) in __start_server()
121 const char *addr_str, __u16 port, int timeout_ms) in start_server_proto() argument
130 addrlen, timeout_ms, false); in start_server_proto()
134 int timeout_ms) in start_server() argument
136 return start_server_proto(family, type, 0, addr_str, port, timeout_ms); in start_server()
140 int timeout_ms) in start_mptcp_server() argument
143 port, timeout_ms); in start_mptcp_server()
147 __u16 port, int timeout_ms, unsigned int nr_listens) in start_reuseport_server() argument
165 timeout_ms, true); in start_reuseport_server()
175 addrlen, timeout_ms, true); in start_reuseport_server()
197 int timeout_ms) in fastopen_connect() argument
216 if (settimeo(fd, timeout_ms)) in fastopen_connect()
305 if (settimeo(fd, opts->timeout_ms)) in connect_to_fd_opts()
324 int connect_to_fd(int server_fd, int timeout_ms) in connect_to_fd() argument
327 .timeout_ms = timeout_ms, in connect_to_fd()
333 int connect_fd_to_fd(int client_fd, int server_fd, int timeout_ms) in connect_fd_to_fd() argument
338 if (settimeo(client_fd, timeout_ms)) in connect_fd_to_fd()