Go to the source code of this file.
Classes | |
| struct | upload_auth_t |
| struct | source |
| struct | chunk |
Typedefs | |
| typedef enum source_status | SourceStatus |
| typedef source | Source |
| typedef chunk | Chunk |
Enumerations | |
| enum | TransferType { TRANSFER_DOWNLOAD, TRANSFER_UPLOAD } |
| enum | source_status { SOURCE_UNUSED = 0, SOURCE_PAUSED, SOURCE_QUEUED_REMOTE, SOURCE_QUEUED_LOCAL, SOURCE_COMPLETE, SOURCE_CANCELLED, SOURCE_TIMEOUT, SOURCE_WAITING, SOURCE_ACTIVE } |
Functions | |
| EXTERN_C_BEGIN GIFTD_EXPORT TransferType | transfer_direction (struct transfer *t) |
| GIFTD_EXPORT size_t | download_throttle (Chunk *chunk, size_t len) |
| GIFTD_EXPORT size_t | upload_throttle (Chunk *chunk, size_t len) |
This API is required as protocol.h makes reference to these types.
|
|
Arbitrary file division of a single transferring file. Usedin connection with sources to perform the multi-source downloading without the plugins awareness/interaction. |
|
|
Defines contact url, hash, and status information. When actively transferring, the associated chunk will be referenced. |
|
|
Defines status groups that giFT can use to modify the transfer logic. Protocols are required to set an appropriate grouping with p->source_status (p, ...). |
|
|
|
Simple accessor for the transfer data structure to retrieve the direction. This is generally useful for plugins because there is little data structure distinction between a download and an upload. Exported by giFT, not libgiftproto. This is not correct, and will change in the future. |
1.3.7