/*++ /* NAME /* inet_connect 3 /* SUMMARY /* connect to TCP listener /* SYNOPSIS /* #include <connect.h> /* /* int inet_windowsize; /* /* int inet_connect(addr, block_mode, timeout) /* const char *addr; /* int block_mode; /* int timeout; /* DESCRIPTION /* inet_connect connects to a TCP listener at /* the specified address, and returns the resulting file descriptor. /* /* Specify an inet_windowsize value > 0 to override the TCP /* window size that the client advertises to the server. /* /* Arguments: /* .IP addr /* The destination to connect to. The format is host:port. If no /* host is specified, a port on the local host is assumed. /* Host and port information may be given in numerical form /* or as symbolical names. /* .IP block_mode /* Either NON_BLOCKING for a non-blocking socket, or BLOCKING for /* blocking mode. /* .IP timeout /* Bounds the number of seconds that the operation may take. Specify /* a value <= 0 to disable the time limit. /* DIAGNOSTICS /* The result is -1 when the connection could not be made. /* The nature of the error is available via the global \fIerrno\fR /* variable. /* Fatal errors: other system call failures. /* 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 /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, 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.