CamelNNTPStream

CamelNNTPStream

Synopsis

struct              CamelNNTPStream;
CamelNNTPStream *   camel_nntp_stream_new               (CamelStream *source);
enum                camel_nntp_stream_mode_t;
void                camel_nntp_stream_set_mode          (CamelNNTPStream *is,
                                                         camel_nntp_stream_mode_t mode);
gint                camel_nntp_stream_line              (CamelNNTPStream *is,
                                                         guchar **data,
                                                         guint *len,
                                                         GCancellable *cancellable,
                                                         GError **error);
gint                camel_nntp_stream_gets              (CamelNNTPStream *is,
                                                         guchar **start,
                                                         guint *len,
                                                         GCancellable *cancellable,
                                                         GError **error);
gint                camel_nntp_stream_getd              (CamelNNTPStream *is,
                                                         guchar **start,
                                                         guint *len,
                                                         GCancellable *cancellable,
                                                         GError **error);

Object Hierarchy

  GObject
   +----CamelStream
         +----CamelNNTPStream

Implemented Interfaces

CamelNNTPStream implements GSeekable.

Description

Details

struct CamelNNTPStream

struct CamelNNTPStream;

camel_nntp_stream_new ()

CamelNNTPStream *   camel_nntp_stream_new               (CamelStream *source);

enum camel_nntp_stream_mode_t

typedef enum {
	CAMEL_NNTP_STREAM_LINE,
	CAMEL_NNTP_STREAM_DATA,
	CAMEL_NNTP_STREAM_EOD /* end of data, acts as if end of stream */
} camel_nntp_stream_mode_t;

CAMEL_NNTP_STREAM_LINE

CAMEL_NNTP_STREAM_DATA

CAMEL_NNTP_STREAM_EOD


camel_nntp_stream_set_mode ()

void                camel_nntp_stream_set_mode          (CamelNNTPStream *is,
                                                         camel_nntp_stream_mode_t mode);

camel_nntp_stream_line ()

gint                camel_nntp_stream_line              (CamelNNTPStream *is,
                                                         guchar **data,
                                                         guint *len,
                                                         GCancellable *cancellable,
                                                         GError **error);

camel_nntp_stream_gets ()

gint                camel_nntp_stream_gets              (CamelNNTPStream *is,
                                                         guchar **start,
                                                         guint *len,
                                                         GCancellable *cancellable,
                                                         GError **error);

camel_nntp_stream_getd ()

gint                camel_nntp_stream_getd              (CamelNNTPStream *is,
                                                         guchar **start,
                                                         guint *len,
                                                         GCancellable *cancellable,
                                                         GError **error);