/*++ /* NAME /* dict_sockmap 3 /* SUMMARY /* dictionary manager interface to Sendmail-style socketmap server /* SYNOPSIS /* #include <dict_sockmap.h> /* /* DICT *dict_sockmap_open(map, open_flags, dict_flags) /* const char *map; /* int open_flags; /* int dict_flags; /* DESCRIPTION /* dict_sockmap_open() makes a Sendmail-style socketmap server /* accessible via the generic dictionary operations described /* in dict_open(3). The only implemented operation is dictionary /* lookup. This map type can be useful for simulating a dynamic /* lookup table. /* /* Postfix socketmap names have the form inet:host:port:socketmap-name /* or unix:pathname:socketmap-name, where socketmap-name /* specifies the socketmap name that the socketmap server uses. /* /* To test this module, build the netstring and dict_open test /* programs. Run "./netstring nc -l portnumber" as the server, /* and "./dict_open socketmap:127.0.0.1:portnumber:socketmapname" /* as the client. /* PROTOCOL /* .ad /* .fi /* The socketmap class implements a simple protocol: the client /* sends one request, and the server sends one reply. /* ENCODING /* .ad /* .fi /* Each request and reply are sent as one netstring object. /* REQUEST FORMAT /* .ad /* .fi /* .IP "<mapname> <space> <key>" /* Search the specified socketmap under the specified key. /* REPLY FORMAT /* .ad /* .fi /* Replies must be no longer than 100000 characters (not including /* the netstring encapsulation), and must have the following /* form: /* .IP "OK <space> <data>" /* The requested data was found. /* .IP "NOTFOUND <space>" /* The requested data was not found. /* .IP "TEMP <space> <reason>" /* .IP "TIMEOUT <space> <reason>" /* .IP "PERM <space> <reason>" /* The request failed. The reason, if non-empty, is descriptive /* text. /* SECURITY /* This map cannot be used for security-sensitive information, /* because neither the connection nor the server are authenticated. /* SEE ALSO /* dict(3) generic dictionary manager /* netstring(3) netstring stream I/O support /* DIAGNOSTICS /* Fatal errors: out of memory, unknown host or service name, /* attempt to update or iterate over map. /* BUGS /* The protocol limits are not yet configurable. /* 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.