/*++ /* NAME /* mail_connect 3 /* SUMMARY /* intra-mail system connection management /* SYNOPSIS /* #include <mail_proto.h> /* /* VSTREAM *mail_connect(class, name, block_mode) /* const char *class; /* const char *name; /* int block_mode; /* /* VSTREAM *mail_connect_wait(class, name) /* const char *class; /* const char *name; /* DESCRIPTION /* This module does low-level connection management for intra-mail /* communication. All reads and writes are subject to a time limit /* (controlled by the global variable \fIvar_ipc_timeout\fR). This /* protects against deadlock conditions that should never happen. /* /* mail_connect() attempts to connect to the UNIX-domain socket of /* the named subsystem. The result is a null pointer in case of failure. /* By default this function provides no errno logging. /* /* mail_connect_wait() is like mail_connect(), but keeps trying until /* the connection succeeds. However, mail_connect_wait() terminates /* with a fatal error when the service is down. This is to ensure that /* processes terminate when the mail system shuts down. /* /* Arguments: /* .IP class /* Name of a class of local transport channel endpoints, /* either \fIpublic\fR (accessible by any local user) or /* \fIprivate\fR (administrative access only). /* .IP service /* The name of a local transport endpoint within the named class. /* .IP block_mode /* NON_BLOCKING for a non-blocking connection, or BLOCKING. /* SEE ALSO /* timed_ipc(3), enforce IPC timeouts. /* 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.