| GMime 2.4 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
GMimeStreamFs;
GMimeStream * g_mime_stream_fs_new (int fd);
GMimeStream * g_mime_stream_fs_new_with_bounds (int fd,
gint64 start,
gint64 end);
gboolean g_mime_stream_fs_get_owner (GMimeStreamFs *stream);
void g_mime_stream_fs_set_owner (GMimeStreamFs *stream,
gboolean owner);
A simple GMimeStream implementation that sits on top of the low-level UNIX file descriptor based I/O layer.
typedef struct _GMimeStreamFs GMimeStreamFs;
A GMimeStream wrapper around POSIX file descriptors.
GMimeStream * g_mime_stream_fs_new (int fd);
Creates a new GMimeStreamFs object around fd.
|
file descriptor |
Returns : |
a stream using fd.
|
GMimeStream * g_mime_stream_fs_new_with_bounds (int fd,
gint64 start,
gint64 end);
Creates a new GMimeStreamFs object around fd with bounds start
and end.
|
a file descriptor |
|
start boundary |
|
end boundary |
Returns : |
a stream using fd with bounds start and end.
|
gboolean g_mime_stream_fs_get_owner (GMimeStreamFs *stream);
Gets whether or not stream owns the backend file descriptor.