A plugin to provide a simple way to compress and incrementally send the files in the FileList structure.
More...
|
void | StartIncrementalReadThreads (int numThreads, int threadPriority=-99999) |
| Optionally start worker threads when using _incrementalReadInterface for the Send() operation.
|
|
unsigned short | SetupReceive (FileListTransferCBInterface *handler, bool deleteHandler, SystemAddress allowedSender) |
| Allows one corresponding Send() call from another system to arrive.
|
|
void | Send (FileList *fileList, RakNet::RakPeerInterface *rakPeer, SystemAddress recipient, unsigned short setID, PacketPriority priority, char orderingChannel, IncrementalReadInterface *_incrementalReadInterface=0, unsigned int _chunkSize=262144 *4 *16) |
| Send the FileList structure to another system, which must have previously called SetupReceive().
|
|
unsigned int | GetPendingFilesToAddress (SystemAddress recipient) |
| Return number of files waiting to go out to a particular address.
|
|
void | CancelReceive (unsigned short setId) |
| Stop a download.
|
|
void | RemoveReceiver (SystemAddress systemAddress) |
| Remove all handlers associated with a particular system address.
|
|
bool | IsHandlerActive (unsigned short setId) |
| Is a handler passed to SetupReceive still running?
|
|
void | AddCallback (FileListProgress *cb) |
| Adds a callback to get progress reports about what the file list instances do.
|
|
void | RemoveCallback (FileListProgress *cb) |
| Removes a callback.
|
|
void | ClearCallbacks (void) |
| Removes all callbacks.
|
|
void | GetCallbacks (DataStructures::List< FileListProgress * > &callbacks) |
|
virtual PluginReceiveResult | OnReceive (Packet *packet) |
|
virtual void | OnRakPeerShutdown (void) |
| Called when RakPeer is shutdown.
|
|
virtual void | OnClosedConnection (const SystemAddress &systemAddress, RakNetGUID rakNetGUID, PI2_LostConnectionReason lostConnectionReason) |
|
virtual void | Update (void) |
| Update is called every time a packet is checked for .
|
|
virtual void | OnAttach (void) |
| Called when the interface is attached.
|
|
virtual void | OnDetach (void) |
| Called when the interface is detached.
|
|
virtual void | OnRakPeerStartup (void) |
| Called when RakPeer is initialized.
|
|
virtual void | OnNewConnection (const SystemAddress &systemAddress, RakNetGUID rakNetGUID, bool isIncoming) |
|
virtual void | OnFailedConnectionAttempt (Packet *packet, PI2_FailedConnectionAttemptReason failedConnectionAttemptReason) |
|
virtual bool | UsesReliabilityLayer (void) const |
|
virtual void | OnDirectSocketSend (const char *data, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress) |
|
virtual void | OnDirectSocketReceive (const char *data, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress) |
|
virtual void | OnReliabilityLayerNotification (const char *errorMessage, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress, bool isError) |
|
virtual void | OnInternalPacket (InternalPacket *internalPacket, unsigned frameNumber, SystemAddress remoteSystemAddress, RakNet::TimeMS time, int isSend) |
|
virtual void | OnAck (unsigned int messageNumber, SystemAddress remoteSystemAddress, RakNet::TimeMS time) |
|
virtual void | OnPushBackPacket (const char *data, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress) |
|
A plugin to provide a simple way to compress and incrementally send the files in the FileList structure.
Similar to the DirectoryDeltaTransfer plugin, except that it doesn't send deltas based on pre-existing files or actually write the files to disk.
Usage: Call SetupReceive to allow one file set to arrive. The value returned by FileListTransfer::SetupReceive()
is the setID that is allowed.
It's up to you to transmit this value to the other system, along with information indicating what kind of files you want to get.
The other system should then prepare a FileList and call FileListTransfer::Send(), passing the return value of FileListTransfer::SetupReceive()
as the setID parameter to FileListTransfer::Send()