3 #ifndef _SMTP_STREAM_H_INCLUDED_
4 #define _SMTP_STREAM_H_INCLUDED_
10 /* smtp stream I/O support
12 /* #include <smtp_stream.h>
29 * External interface. The following codes are meant for use in longjmp(),
30 * so they must all be non-zero.
32 #define SMTP_ERR_EOF 1 /* unexpected client disconnect */
33 #define SMTP_ERR_TIME 2 /* time out */
34 #define SMTP_ERR_QUIET 3 /* silent cleanup (application) */
35 #define SMTP_ERR_NONE 4 /* non-error case */
37 extern void smtp_timeout_setup(VSTREAM
*, int);
38 extern void PRINTFLIKE(2, 3) smtp_printf(VSTREAM
*, const char *,...);
39 extern void smtp_flush(VSTREAM
*);
40 extern int smtp_fgetc(VSTREAM
*);
41 extern int smtp_get(VSTRING
*, VSTREAM
*, ssize_t
);
42 extern void smtp_fputs(const char *, ssize_t len
, VSTREAM
*);
43 extern void smtp_fwrite(const char *, ssize_t len
, VSTREAM
*);
44 extern void smtp_fputc(int, VSTREAM
*);
46 extern void smtp_vprintf(VSTREAM
*, const char *, va_list);
51 /* The Secure Mailer license must be distributed with this software.
54 /* IBM T.J. Watson Research
56 /* Yorktown Heights, NY 10598, USA