Shadowrun: Awakened 29 September 2011 - Build 871
Public Attributes
RakNet::FileListTransferCBInterface::FileProgressStruct Struct Reference

#include <FileListTransferCBInterface.h>

List of all members.

Public Attributes

bool allocateIrIDataChunkAutomatically
unsigned int dataChunkLength
char * firstDataChunk
char * iriDataChunk
unsigned int iriWriteOffset
OnFileStructonFileStruct
unsigned int partCount
unsigned int partTotal
RakNetGUID senderGuid
SystemAddress senderSystemAddress

Detailed Description

Definition at line 69 of file FileListTransferCBInterface.h.


Member Data Documentation

Parameters:
[in]allocateIrIDataChunkAutomaticallyIf true, then RakNet will hold iriDataChunk for you and return it in OnFile. Defaults to true

Definition at line 90 of file FileListTransferCBInterface.h.

Parameters:
[out]dataChunkLengthHow many bytes long firstDataChunk and iriDataChunk are

Definition at line 78 of file FileListTransferCBInterface.h.

Parameters:
[out]firstDataChunkThe 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.

Parameters:
[out]iriDataChunkIf 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.

Parameters:
[out]iriWriteOffsetOffset in bytes from the start of the file for the data pointed to by iriDataChunk

Definition at line 84 of file FileListTransferCBInterface.h.

Parameters:
[out]onFileStructGeneral 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.

Parameters:
[out]partCountThe 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.

Parameters:
[out]partTotalThe 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.

Parameters:
[out]Whosent this file. Not valid when using TCP, only RakPeer (UDP)

Definition at line 88 of file FileListTransferCBInterface.h.

Parameters:
[out]Whosent this file

Definition at line 86 of file FileListTransferCBInterface.h.


The documentation for this struct was generated from the following file:

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net