Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

dl_buffers Struct Reference

#include <downloads.h>


Detailed Description

Structure used to control read buffering for active downloads.

Each buffer in this pool is of SOCK_BUFSZ bytes, and the first buffer is always the buffer from the socket structure.


Data Fields

enum dl_bufmode mode
 I/O vector mode.

gint count
 Number of buffers for reading.

gchar ** buffers
 Array of `count' buffers.

iovec * iov
 I/O vector of buffers.

iovec * iov_cur
 Current base of I/O vector for reading.

gint iovcnt
 Remaining entries in I/O vector.

size_t size
 Total size of buffers.

size_t amount
 Amount to buffer (extra is read-ahead).

size_t held
 Amount of data held in read buffers.


Field Documentation

size_t dl_buffers::amount
 

Amount to buffer (extra is read-ahead).

gchar** dl_buffers::buffers
 

Array of `count' buffers.

gint dl_buffers::count
 

Number of buffers for reading.

size_t dl_buffers::held
 

Amount of data held in read buffers.

struct iovec* dl_buffers::iov
 

I/O vector of buffers.

struct iovec* dl_buffers::iov_cur
 

Current base of I/O vector for reading.

gint dl_buffers::iovcnt
 

Remaining entries in I/O vector.

enum dl_bufmode dl_buffers::mode
 

I/O vector mode.

size_t dl_buffers::size
 

Total size of buffers.


The documentation for this struct was generated from the following file:
Generated on Sun Feb 12 10:50:11 2006 for Gtk-Gnutella by doxygen 1.3.6