![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <FileListTransferCBInterface.h>
Public Attributes | |
| bool | allocateIrIDataChunkAutomatically |
| unsigned int | dataChunkLength |
| char * | firstDataChunk |
| char * | iriDataChunk |
| unsigned int | iriWriteOffset |
| OnFileStruct * | onFileStruct |
| unsigned int | partCount |
| unsigned int | partTotal |
| RakNetGUID | senderGuid |
| SystemAddress | senderSystemAddress |
Definition at line 69 of file FileListTransferCBInterface.h.
| [in] | allocateIrIDataChunkAutomatically | If true, then RakNet will hold iriDataChunk for you and return it in OnFile. Defaults to true |
Definition at line 90 of file FileListTransferCBInterface.h.
| [out] | dataChunkLength | How many bytes long firstDataChunk and iriDataChunk are |
Definition at line 78 of file FileListTransferCBInterface.h.
| [out] | firstDataChunk | The first partLength of the final file. If you store identifying information about the file in the first partLength bytes, you can read them while the download is taking place. If this hasn't arrived yet, firstDataChunk will be 0 |
Definition at line 80 of file FileListTransferCBInterface.h.
| [out] | iriDataChunk | If the remote system is sending this file using IncrementalReadInterface, then this is the chunk we just downloaded. It will not exist in memory after this callback. You should either store this to disk, or in memory. If it is 0, then the file is smaller than one chunk, and will be held in memory automatically |
Definition at line 82 of file FileListTransferCBInterface.h.
| [out] | iriWriteOffset | Offset in bytes from the start of the file for the data pointed to by iriDataChunk |
Definition at line 84 of file FileListTransferCBInterface.h.
| [out] | onFileStruct | General information about this file, such as the filename and the first partLength bytes. You do NOT need to save this data yourself. The complete file will arrive normally. |
Definition at line 72 of file FileListTransferCBInterface.h.
| [out] | partCount | The zero based index into partTotal. The percentage complete done of this file is 100 * (partCount+1)/partTotal |
Definition at line 74 of file FileListTransferCBInterface.h.
| [out] | partTotal | The total number of parts this file was split into. Each part will be roughly the MTU size, minus the UDP header and RakNet headers |
Definition at line 76 of file FileListTransferCBInterface.h.
| [out] | Who | sent this file. Not valid when using TCP, only RakPeer (UDP) |
Definition at line 88 of file FileListTransferCBInterface.h.
| [out] | Who | sent this file |
Definition at line 86 of file FileListTransferCBInterface.h.
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.