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

parq_ul_queued Struct Reference


Detailed Description

Contains the queued upload.


Data Fields

guint32 magic
 Magic number.

guint32 flags
 Operating flags.

guint position
 Current position in the queue.

guint relative_position
 Relative position in the queue, if 'not alive' uploads are taken into account.

gboolean quick
 Slot granted for allowed quick upload.

gboolean active_queued
 Whether the current upload is actively queued.

gboolean has_slot
 Whether the items is currently uploading.

gboolean had_slot
 If an upload had an upload slot it is not allowed to reuse the id for another upload.

guint eta
 Expected time in seconds till an upload slot is reached, this is a relative timestamp.

time_t expire
 Time when the queue position will be lost.

time_t retry
 Time when the first retry-after is expected.

time_t enter
 Time upload entered parq.

time_t updated
 Time last upload request was sent.

time_t ban_timeout
 Time after which we won't kick out the upload out of the queue when retry isn't obeyed.

time_t disc_timeout
 Time after which we allow the upload to be disconnected again.

time_t last_queue_sent
 When we last sent the QUEUE.

time_t send_next_queue
 When will we send the next QUEUE.

guint32 queue_sent
 Amount of QUEUE messages we tried to send.

guint32 queue_refused
 Amount of QUEUE messages refused remotely.

gboolean is_alive
 Whether client is still requesting this file.

gchar * id
 PARQ identifier.

gchar * addr_and_name
 "IP name", used as key in hash table

gchar * name
 NB: points directly into `addr_and_name'.

gchar * sha1
 SHA1 digest for easy reference.

host_addr_t remote_addr
 IP address of the socket endpoint.

filesize_t file_size
 Needed to recalculate ETA.

filesize_t chunk_size
 Requested chunk size.

filesize_t uploaded_size
 Bytes previously uploaded.

host_addr_t addr
 Contact IP:port, as read from X-Node:.

guint16 port
guint major
guint minor
parq_ul_queuequeue
 In which queue this entry is listed.

parq_ul_queued_by_addrby_addr
gnutella_upload_tu
 Internal reference to upload structure if available.


Field Documentation

gboolean parq_ul_queued::active_queued
 

Whether the current upload is actively queued.

host_addr_t parq_ul_queued::addr
 

Contact IP:port, as read from X-Node:.

gchar* parq_ul_queued::addr_and_name
 

"IP name", used as key in hash table

time_t parq_ul_queued::ban_timeout
 

Time after which we won't kick out the upload out of the queue when retry isn't obeyed.

struct parq_ul_queued_by_addr* parq_ul_queued::by_addr
 

filesize_t parq_ul_queued::chunk_size
 

Requested chunk size.

time_t parq_ul_queued::disc_timeout
 

Time after which we allow the upload to be disconnected again.

time_t parq_ul_queued::enter
 

Time upload entered parq.

guint parq_ul_queued::eta
 

Expected time in seconds till an upload slot is reached, this is a relative timestamp.

time_t parq_ul_queued::expire
 

Time when the queue position will be lost.

filesize_t parq_ul_queued::file_size
 

Needed to recalculate ETA.

guint32 parq_ul_queued::flags
 

Operating flags.

gboolean parq_ul_queued::had_slot
 

If an upload had an upload slot it is not allowed to reuse the id for another upload.

gboolean parq_ul_queued::has_slot
 

Whether the items is currently uploading.

gchar* parq_ul_queued::id
 

PARQ identifier.

gboolean parq_ul_queued::is_alive
 

Whether client is still requesting this file.

time_t parq_ul_queued::last_queue_sent
 

When we last sent the QUEUE.

guint32 parq_ul_queued::magic
 

Magic number.

guint parq_ul_queued::major
 

guint parq_ul_queued::minor
 

gchar* parq_ul_queued::name
 

NB: points directly into `addr_and_name'.

guint16 parq_ul_queued::port
 

guint parq_ul_queued::position
 

Current position in the queue.

struct parq_ul_queue* parq_ul_queued::queue
 

In which queue this entry is listed.

guint32 parq_ul_queued::queue_refused
 

Amount of QUEUE messages refused remotely.

guint32 parq_ul_queued::queue_sent
 

Amount of QUEUE messages we tried to send.

gboolean parq_ul_queued::quick
 

Slot granted for allowed quick upload.

guint parq_ul_queued::relative_position
 

Relative position in the queue, if 'not alive' uploads are taken into account.

host_addr_t parq_ul_queued::remote_addr
 

IP address of the socket endpoint.

time_t parq_ul_queued::retry
 

Time when the first retry-after is expected.

time_t parq_ul_queued::send_next_queue
 

When will we send the next QUEUE.

gchar* parq_ul_queued::sha1
 

SHA1 digest for easy reference.

gnutella_upload_t* parq_ul_queued::u
 

Internal reference to upload structure if available.

time_t parq_ul_queued::updated
 

Time last upload request was sent.

filesize_t parq_ul_queued::uploaded_size
 

Bytes previously uploaded.


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