/*++ /* NAME /* timed_connect 3 /* SUMMARY /* connect operation with timeout /* SYNOPSIS /* #include <sys/socket.h> /* #include <timed_connect.h> /* /* int timed_connect(fd, buf, buf_len, timeout) /* int fd; /* struct sockaddr *buf; /* int buf_len; /* int timeout; /* DESCRIPTION /* timed_connect() implement a BSD socket connect() operation that is /* bounded in time. /* /* Arguments: /* .IP fd /* File descriptor in the range 0..FD_SETSIZE. This descriptor /* must be set to non-blocking mode prior to calling timed_connect(). /* .IP buf /* Socket address buffer pointer. /* .IP buf_len /* Size of socket address buffer. /* .IP timeout /* The deadline in seconds. This must be a number > 0. /* DIAGNOSTICS /* Panic: interface violations. /* When the operation does not complete within the deadline, the /* result value is -1, and errno is set to ETIMEDOUT. /* All other returns are identical to those of a blocking connect(2) /* operation. /* WARNINGS /* .ad /* .fi /* A common error is to call timed_connect() without enabling /* non-blocking I/O on the socket. In that case, the \fItimeout\fR /* parameter takes no effect. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.