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

upload Struct Reference

#include <uploads.h>


Data Fields

gnet_upload_t upload_handle
guint32 flags
 Operating flags.

upload_stage_t status
gnutella_socketsocket
gint error_sent
 HTTP error code sent back.

gpointer io_opaque
 Opaque I/O callback information.

gpointer parq_opaque
 Opaque parq information.

gint file_desc
bio_source_tbio
 Bandwidth-limited source.

sendfile_ctx_t sendfile_ctx
special_ctxspecial
 For special ops like browsing.

gchar * buffer
gint bpos
gint bsize
gint buf_size
guint index
gchar * name
filesize_t file_size
time_t start_date
time_t last_update
dl_file_infofile_info
 For PFSP: only set when partial file.

host_addr_t addr
 Remote IP address.

gchar * user_agent
 Remote user agent.

gint country
 Country of origin, ISO3166 code.

filesize_t skip
 First byte to send, inclusive.

filesize_t end
 Last byte to send, inclusive.

filesize_t pos
 Read position in file we're sending.

filesize_t sent
 Bytes sent in this request.

host_addr_t gnet_addr
 Advertised remote IP address.

guint16 gnet_port
 Advertised Gnet port, for browsing.

guint32 last_dmesh
 Time when last download mesh was sent.

gchar * sha1
 SHA1 of requested file.

filesize_t total_requested
 Total amount of bytes requested.

gint http_major
 HTTP major version.

gint http_minor
 HTTP minor version.

gboolean keep_alive
 Keep HTTP connection?

gboolean push
gboolean queue
 Similar to PUSH, but for PARQ's QUEUE.

gboolean accounted
 True when upload was accounted for.

gboolean unavailable_range
 True when last request ended with 416.

gboolean n2r
 True when they sent an N2R request.

gboolean browse_host
 True when they sent a Browse Host req.

gboolean from_browser
 True when request likely from browser.

gboolean parq_status


Field Documentation

gboolean upload::accounted
 

True when upload was accounted for.

host_addr_t upload::addr
 

Remote IP address.

bio_source_t* upload::bio
 

Bandwidth-limited source.

gint upload::bpos
 

gboolean upload::browse_host
 

True when they sent a Browse Host req.

gint upload::bsize
 

gint upload::buf_size
 

gchar* upload::buffer
 

gint upload::country
 

Country of origin, ISO3166 code.

filesize_t upload::end
 

Last byte to send, inclusive.

gint upload::error_sent
 

HTTP error code sent back.

gint upload::file_desc
 

struct dl_file_info* upload::file_info
 

For PFSP: only set when partial file.

filesize_t upload::file_size
 

guint32 upload::flags
 

Operating flags.

gboolean upload::from_browser
 

True when request likely from browser.

host_addr_t upload::gnet_addr
 

Advertised remote IP address.

guint16 upload::gnet_port
 

Advertised Gnet port, for browsing.

gint upload::http_major
 

HTTP major version.

gint upload::http_minor
 

HTTP minor version.

guint upload::index
 

gpointer upload::io_opaque
 

Opaque I/O callback information.

gboolean upload::keep_alive
 

Keep HTTP connection?

guint32 upload::last_dmesh
 

Time when last download mesh was sent.

time_t upload::last_update
 

gboolean upload::n2r
 

True when they sent an N2R request.

gchar* upload::name
 

gpointer upload::parq_opaque
 

Opaque parq information.

gboolean upload::parq_status
 

filesize_t upload::pos
 

Read position in file we're sending.

gboolean upload::push
 

gboolean upload::queue
 

Similar to PUSH, but for PARQ's QUEUE.

sendfile_ctx_t upload::sendfile_ctx
 

filesize_t upload::sent
 

Bytes sent in this request.

gchar* upload::sha1
 

SHA1 of requested file.

filesize_t upload::skip
 

First byte to send, inclusive.

struct gnutella_socket* upload::socket
 

struct special_ctx* upload::special
 

For special ops like browsing.

time_t upload::start_date
 

upload_stage_t upload::status
 

filesize_t upload::total_requested
 

Total amount of bytes requested.

gboolean upload::unavailable_range
 

True when last request ended with 416.

gnet_upload_t upload::upload_handle
 

gchar* upload::user_agent
 

Remote user agent.


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