24
24
#include <vstream.h>
27
* External interface. The following codes are meant for use in longjmp(),
28
* so they must all be non-zero.
29
30
#define SMTP_ERR_EOF 1 /* unexpected client disconnect */
30
31
#define SMTP_ERR_TIME 2 /* time out */
31
#define SMTP_ERR_PROTO 3 /* protocol (application) */
32
#define SMTP_ERR_QUIET 3 /* silent cleanup (application) */
33
#define SMTP_ERR_NONE 4 /* non-error case */
33
35
extern void smtp_timeout_setup(VSTREAM *, int);
34
36
extern void PRINTFLIKE(2, 3) smtp_printf(VSTREAM *, const char *,...);
35
37
extern void smtp_flush(VSTREAM *);
36
38
extern int smtp_fgetc(VSTREAM *);
37
extern int smtp_get(VSTRING *, VSTREAM *, int);
38
extern void smtp_fputs(const char *, int len, VSTREAM *);
39
extern void smtp_fwrite(const char *, int len, VSTREAM *);
39
extern int smtp_get(VSTRING *, VSTREAM *, ssize_t);
40
extern void smtp_fputs(const char *, ssize_t len, VSTREAM *);
41
extern void smtp_fwrite(const char *, ssize_t len, VSTREAM *);
40
42
extern void smtp_fputc(int, VSTREAM *);
42
44
extern void smtp_vprintf(VSTREAM *, const char *, va_list);