Main Page | Class List | File List | Class Members | File Members | Related Pages

chunk Struct Reference

#include <gi_transfer_api.h>

List of all members.

Public Attributes

transfertransfer
Sourcesource
off_t start
off_t stop
unsigned char stop_change: 1
unsigned char suspended: 1
float adjust_dep
off_t transmit
off_t transmit_old_dep
unsigned long throughput_dep
unsigned long tmp_recv
int timeout_cnt
int timeout_max
void * udata


Detailed Description

Arbitrary file division of a single transferring file. Usedin connection with sources to perform the multi-source downloading without the plugins awareness/interaction.


Member Data Documentation

float chunk::adjust_dep
 

The following members are from old throttling code and are no longer being used. They are being added to the structure for binary compatibility only.

Source* chunk::source
 

source fulfilling this chunks data requirements

off_t chunk::start
 

beginning offset in the file, please note that if you are asked to begin downloading from a chunk, you must start at start+transmit as start represents the actual division made by giFT

off_t chunk::stop
 

ending offset in the file

unsigned char chunk::stop_change
 

stop was moved...protocol might need to know this, hopefully this will be cleaned up in the future

unsigned char chunk::suspended
 

chunk was suspended for the purpose of userspace throttling

int chunk::timeout_cnt
 

timeout counter (how many seconds of inactivity exist)

int chunk::timeout_max
 

maximum number of timeout counts until an action is performed

unsigned long chunk::tmp_recv
 

similar to throughput, deprecated

struct transfer* chunk::transfer
 

parent transfer that created this instance

off_t chunk::transmit
 

number of recvd or sent bytes

void* chunk::udata
 

protocol-specific user data


The documentation for this struct was generated from the following file:
Generated on Sun Aug 22 08:11:13 2004 by doxygen 1.3.7