![]() |
![]() |
![]() |
Camel Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
struct CamelPOP3Stream; CamelStream * camel_pop3_stream_new (CamelStream *source
); enum camel_pop3_stream_mode_t; void camel_pop3_stream_set_mode (CamelPOP3Stream *is
,camel_pop3_stream_mode_t mode
); gint camel_pop3_stream_line (CamelPOP3Stream *is
,guchar **data
,guint *len
,GCancellable *cancellable
,GError **error
); gint camel_pop3_stream_getd (CamelPOP3Stream *is
,guchar **start
,guint *len
,GCancellable *cancellable
,GError **error
);
CamelStream * camel_pop3_stream_new (CamelStream *source
);
Returns a NULL stream. A null stream is always at eof, and always returns success for all reads and writes.
Returns : |
the stream |
typedef enum { CAMEL_POP3_STREAM_LINE, CAMEL_POP3_STREAM_DATA, CAMEL_POP3_STREAM_EOD /* end of data, acts as if end of stream */ } camel_pop3_stream_mode_t;
void camel_pop3_stream_set_mode (CamelPOP3Stream *is
,camel_pop3_stream_mode_t mode
);
gint camel_pop3_stream_line (CamelPOP3Stream *is
,guchar **data
,guint *len
,GCancellable *cancellable
,GError **error
);
gint camel_pop3_stream_getd (CamelPOP3Stream *is
,guchar **start
,guint *len
,GCancellable *cancellable
,GError **error
);