Sync usage with man page.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / smtpd / smtpd_proxy.h
blobea86e688765792ed30519973e1aff39598aadafb
1 /* $NetBSD$ */
3 /*++
4 /* NAME
5 /* smtpd_proxy 3h
6 /* SUMMARY
7 /* SMTP server pass-through proxy client
8 /* SYNOPSIS
9 /* #include <smtpd.h>
10 /* #include <smtpd_proxy.h>
11 /* DESCRIPTION
12 /* .nf
15 * Utility library.
17 #include <vstream.h>
18 #include <vstring.h>
21 * Application-specific.
23 #define SMTPD_PROX_WANT_NONE '\0' /* Do not receive reply */
24 #define SMTPD_PROX_WANT_ANY '0' /* Expect any reply */
25 #define SMTPD_PROX_WANT_OK '2' /* Expect 2XX reply */
26 #define SMTPD_PROX_WANT_MORE '3' /* Expect 3XX reply */
28 extern int smtpd_proxy_open(SMTPD_STATE *, const char *, int, const char *, const char *);
29 extern int PRINTFLIKE(3, 4) smtpd_proxy_cmd(SMTPD_STATE *, int, const char *,...);
30 extern int smtpd_proxy_rec_put(VSTREAM *, int, const char *, ssize_t);
31 extern int PRINTFLIKE(3, 4) smtpd_proxy_rec_fprintf(VSTREAM *, int, const char *,...);
32 extern void smtpd_proxy_close(SMTPD_STATE *);
34 /* LICENSE
35 /* .ad
36 /* .fi
37 /* The Secure Mailer license must be distributed with this software.
38 /* AUTHOR(S)
39 /* Wietse Venema
40 /* IBM T.J. Watson Research
41 /* P.O. Box 704
42 /* Yorktown Heights, NY 10598, USA
43 /*--*/