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

download Struct Reference

#include <downloads.h>


Data Fields

gnet_src_t src_handle
 Handle.

gchar error_str [256]
 Used to sprintf() error strings with vars.

download_status_t status
 Current status of the download.

gpointer io_opaque
 Opaque I/O callback information.

bio_sourcebio
 Bandwidth-limited source.

dl_serverserver
 Remote server description.

enum dl_list list_idx
 List to which download belongs in server.

dl_file_infofile_info
guint32 record_index
 Index of the file on the Gnutella server.

gchar * file_name
 Name of the file on the Gnutella server.

gchar * escaped_name
 As file_name, with control chars escaped.

filesize_t file_size
 Total size of the file, in bytes.

filesize_t size
 Total size of the next request, in bytes.

filesize_t skip
 # of bytes for file we had before start

filesize_t pos
 # of bytes of the file we currently have

filesize_t range_end
 1st byte offset AFTER requested range

gnutella_socketsocket
gint file_desc
 FD for writing into downloaded file.

guint32 overlap_size
 Size of the overlapping window on resume.

http_bufferreq
 HTTP request, when partially sent.

dl_buffersbuffers
 Buffers for reading, only when active.

time_t start_date
 Download start date.

time_t last_update
 Last status update or I/O.

time_t last_gui_update
 Last stats update on the GUI.

time_t record_stamp
 Stamp of the query hit that launched us.

time_t retry_after
 Time at which we may retry this download.

tm_t header_sent
 When we sent headers, for latency.

guint32 retries
guint32 timeout_delay
guint32 served_reqs
 Amount of served requests on connection.

const gchar * remove_msg
gchar * sha1
 Known SHA1 (binary atom), NULL if none.

gchar * uri
 Uri if not dealing with regular gnutella < file download.

guint32 last_dmesh
 Time when last download mesh was sent.

GSList * ranges
 PFSP -- known list of ranges, or NULL.

filesize_t ranges_size
 PFSP -- size of remotely available data.

filesize_t sinkleft
 Amount of data left to sink.

guint32 flags
guint32 cflags
gboolean keep_alive
 Keep HTTP connection?

gboolean visible
 The download is visible in the GUI.

gboolean push
 Currently in push mode.

gboolean always_push
 Always use the push method for this.

gboolean got_giv
 Whether initiated from GIV reception.

gboolean unavailable
 Set on Timout, Push route lost.

cproxycproxy
 Push proxy being used currently.

gpointer queue_status
 Queuing status.

browse_ctxbrowse
 For browse-host requests.


Field Documentation

gboolean download::always_push
 

Always use the push method for this.

struct bio_source* download::bio
 

Bandwidth-limited source.

struct browse_ctx* download::browse
 

For browse-host requests.

struct dl_buffers* download::buffers
 

Buffers for reading, only when active.

guint32 download::cflags
 

struct cproxy* download::cproxy
 

Push proxy being used currently.

gchar download::error_str[256]
 

Used to sprintf() error strings with vars.

gchar* download::escaped_name
 

As file_name, with control chars escaped.

gint download::file_desc
 

FD for writing into downloaded file.

struct dl_file_info* download::file_info
 

gchar* download::file_name
 

Name of the file on the Gnutella server.

filesize_t download::file_size
 

Total size of the file, in bytes.

guint32 download::flags
 

gboolean download::got_giv
 

Whether initiated from GIV reception.

tm_t download::header_sent
 

When we sent headers, for latency.

gpointer download::io_opaque
 

Opaque I/O callback information.

gboolean download::keep_alive
 

Keep HTTP connection?

guint32 download::last_dmesh
 

Time when last download mesh was sent.

time_t download::last_gui_update
 

Last stats update on the GUI.

time_t download::last_update
 

Last status update or I/O.

enum dl_list download::list_idx
 

List to which download belongs in server.

guint32 download::overlap_size
 

Size of the overlapping window on resume.

filesize_t download::pos
 

# of bytes of the file we currently have

gboolean download::push
 

Currently in push mode.

gpointer download::queue_status
 

Queuing status.

filesize_t download::range_end
 

1st byte offset AFTER requested range

GSList* download::ranges
 

PFSP -- known list of ranges, or NULL.

filesize_t download::ranges_size
 

PFSP -- size of remotely available data.

guint32 download::record_index
 

Index of the file on the Gnutella server.

time_t download::record_stamp
 

Stamp of the query hit that launched us.

const gchar* download::remove_msg
 

struct http_buffer* download::req
 

HTTP request, when partially sent.

guint32 download::retries
 

time_t download::retry_after
 

Time at which we may retry this download.

guint32 download::served_reqs
 

Amount of served requests on connection.

struct dl_server* download::server
 

Remote server description.

gchar* download::sha1
 

Known SHA1 (binary atom), NULL if none.

filesize_t download::sinkleft
 

Amount of data left to sink.

filesize_t download::size
 

Total size of the next request, in bytes.

filesize_t download::skip
 

# of bytes for file we had before start

struct gnutella_socket* download::socket
 

gnet_src_t download::src_handle
 

Handle.

time_t download::start_date
 

Download start date.

download_status_t download::status
 

Current status of the download.

guint32 download::timeout_delay
 

gboolean download::unavailable
 

Set on Timout, Push route lost.

gchar* download::uri
 

Uri if not dealing with regular gnutella < file download.

gboolean download::visible
 

The download is visible in the GUI.


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