Lines Matching defs:timeout
240 /* Like connect, but specifies a timeout. If connecting takes longer
246 double timeout)
253 if (run_with_timeout (timeout, connect_with_timeout_callback, &ctx))
504 /* Like a call to accept(), but with the added check for timeout.
637 MAXTIME seconds. Returns 1 if FD is available, 0 for timeout and
643 0-timeout-means-no-timeout semantics.) */
698 /* We got a timeout, it means we're still connected. */
741 sock_poll (int fd, double timeout, int wait_for)
743 return select_fd (fd, timeout, wait_for);
847 poll_internal (int fd, struct transport_info *info, int wf, double timeout)
849 if (timeout == -1)
850 timeout = opt.read_timeout;
851 if (timeout)
855 test = info->imp->poller (fd, timeout, wf, info->ctx);
857 test = sock_poll (fd, timeout, wf);
869 opt.timeout is used for TIMEOUT. */
872 fd_read (int fd, char *buf, int bufsize, double timeout)
876 if (!poll_internal (fd, info, WAIT_FOR_READ, timeout))
887 returns the number of bytes copied. Return values and timeout
897 fd_peek (int fd, char *buf, int bufsize, double timeout)
901 if (!poll_internal (fd, info, WAIT_FOR_READ, timeout))
911 seconds. If TIMEOUT is -1, the value of opt.timeout is used for
915 fd_write (int fd, char *buf, int bufsize, double timeout)
926 if (!poll_internal (fd, info, WAIT_FOR_WRITE, timeout))