/*++ /* NAME /* mail_flow 3 /* SUMMARY /* global mail flow control /* SYNOPSIS /* #include <mail_flow.h> /* /* ssize_t mail_flow_get(count) /* ssize_t count; /* /* ssize_t mail_flow_put(count) /* ssize_t count; /* /* ssize_t mail_flow_count() /* DESCRIPTION /* This module implements a simple flow control mechanism that /* is based on tokens that are consumed by mail receiving processes /* and that are produced by mail sending processes. /* /* mail_flow_get() attempts to read specified number of tokens. The /* result is > 0 for success, < 0 for failure. In the latter case, /* the process is expected to slow down a little. /* /* mail_flow_put() produces the specified number of tokens. The /* token producing process is expected to produce new tokens /* whenever it falls idle and no more tokens are available. /* /* mail_flow_count() returns the number of available tokens. /* BUGS /* The producer needs to wake up periodically to ensure that /* tokens are not lost due to leakage. /* 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.