Main Page | Modules | Alphabetical List | Data Structures | Directories | 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
gint error_sent
 HTTP error code sent back.
gpointer io_opaque
 Opaque I/O callback information.
parq_ul_queuedparq_ul
 PARQ information.
gnutella_socketsocket
shared_filesf
 File we're uploading.
file_objectfile
 uploaded file
dl_file_infofile_info
 For PFSP: only set when partial file.
special_uploadspecial
 For special ops like browsing.
const gchar * name
const struct sha1sha1
 SHA1 of requested file.
shared_filethex
 THEX owner we're uploading.
bio_sourcebio
 Bandwidth-limited source.
sendfile_ctx sendfile_ctx
gchar * request
upload_http_cb cb_parq_arg
upload_http_cb cb_sha1_arg
upload_http_cb cb_416_arg
upload_http_cb cb_status_arg
http_extra_desc_t hev [16]
guint hevcnt
gchar * buffer
gint bpos
gint bsize
gint buf_size
guint file_index
guint reqnum
 Request number, incremented when serving.
time_t start_date
time_t last_update
time_t last_dmesh
 Time when last download mesh was sent.
host_addr_t addr
 Remote IP address.
host_addr_t gnet_addr
 Advertised remote IP address.
guint16 gnet_port
 Advertised Gnet port, for browsing.
guint16 country
 Country of origin, ISO3166 code.
const gchar * user_agent
 Remote user agent.
filesize_t file_size
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.
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 head_only
gboolean is_followup
gboolean was_actively_queued
gboolean was_running
gboolean parq_status


Field Documentation

gboolean upload::accounted
 

True when upload was accounted for.

host_addr_t upload::addr
 

Remote IP address.

struct bio_source* 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
 

struct upload_http_cb upload::cb_416_arg
 

struct upload_http_cb upload::cb_parq_arg
 

struct upload_http_cb upload::cb_sha1_arg
 

struct upload_http_cb upload::cb_status_arg
 

guint16 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.

struct file_object* upload::file
 

uploaded file

guint upload::file_index
 

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.

gboolean upload::head_only
 

http_extra_desc_t upload::hev[16]
 

guint upload::hevcnt
 

gint upload::http_major
 

HTTP major version.

gint upload::http_minor
 

HTTP minor version.

gpointer upload::io_opaque
 

Opaque I/O callback information.

gboolean upload::is_followup
 

gboolean upload::keep_alive
 

Keep HTTP connection?

time_t 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.

const gchar* upload::name
 

gboolean upload::parq_status
 

struct parq_ul_queued* upload::parq_ul
 

PARQ information.

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.

guint upload::reqnum
 

Request number, incremented when serving.

gchar* upload::request
 

struct sendfile_ctx upload::sendfile_ctx
 

filesize_t upload::sent
 

Bytes sent in this request.

struct shared_file* upload::sf
 

File we're uploading.

const struct sha1* upload::sha1
 

SHA1 of requested file.

filesize_t upload::skip
 

First byte to send, inclusive.

struct gnutella_socket* upload::socket
 

struct special_upload* upload::special
 

For special ops like browsing.

time_t upload::start_date
 

upload_stage_t upload::status
 

struct shared_file* upload::thex
 

THEX owner we're uploading.

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
 

const gchar* upload::user_agent
 

Remote user agent.

gboolean upload::was_actively_queued
 

gboolean upload::was_running
 


The documentation for this struct was generated from the following file:
Generated on Sat Jun 30 17:53:34 2007 for gtk-gnutella by  doxygen 1.3.9.1