~ubuntu-branches/ubuntu/trusty/postfix/trusty-updates

« back to all changes in this revision

Viewing changes to src/global/smtp_stream.h

Tags: upstream-2.3.1
ImportĀ upstreamĀ versionĀ 2.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <vstream.h>
25
25
 
26
26
 /*
27
 
  * External interface.
 
27
  * External interface. The following codes are meant for use in longjmp(),
 
28
  * so they must all be non-zero.
28
29
  */
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 */
32
34
 
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 *);
41
43
 
42
44
extern void smtp_vprintf(VSTREAM *, const char *, va_list);