/*++ /* NAME /* stream_connect 3 /* SUMMARY /* connect to stream listener /* SYNOPSIS /* #include <connect.h> /* /* int stream_connect(path, block_mode, timeout) /* const char *path; /* int block_mode; /* int timeout; /* DESCRIPTION /* stream_connect() connects to a stream listener for the specified /* pathname, and returns the resulting file descriptor. /* /* Arguments: /* .IP path /* Null-terminated string with listener endpoint name. /* .IP block_mode /* Either NON_BLOCKING for a non-blocking stream, or BLOCKING for /* blocking mode. However, a stream connection succeeds or fails /* immediately. /* .IP timeout /* This argument is ignored; it is present for compatibility with /* other interfaces. Stream connections succeed or fail immediately. /* DIAGNOSTICS /* The result is -1 in case the connection could not be made. /* 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
/*--*/
int stream_connect(constchar *path, int block_mode, int unused_timeout)
{ #ifdef STREAM_CONNECTIONS constchar *myname = "stream_connect"; int pair[2]; int fifo;
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.