#include <FileListTransfer.h>
Inheritance diagram for FileListTransfer:
Public Member Functions | |
unsigned short | SetupReceive (FileListTransferCBInterface *handler, bool deleteHandler, PlayerID allowedSender) |
void | Send (FileList *fileList, RakPeerInterface *rakPeer, PlayerID recipient, unsigned short setID, PacketPriority priority, char orderingChannel, bool compressData) |
void | RemoveReceiver (PlayerID playerId) |
virtual PluginReceiveResult | OnReceive (RakPeerInterface *peer, Packet *packet) |
virtual void | OnDisconnect (RakPeerInterface *peer) |
virtual void | OnCloseConnection (RakPeerInterface *peer, PlayerID playerId) |
virtual void | OnAttach (RakPeerInterface *peer) |
Protected Member Functions | |
bool | DecodeSetHeader (Packet *packet) |
bool | DecodeFile (Packet *packet, bool fullFile) |
void | Clear (void) |
Protected Attributes | |
DataStructures::Map< unsigned short, FileListReceiver * > | fileListReceivers |
unsigned short | setId |
RakPeerInterface * | rakPeer |
Classes | |
struct | FileListReceiver |
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 send, passing the return value of FileListTransfer::SetupReceive() as the setID parameter to FileListTransfer::Send()
|
Called when the interface is attached
Reimplemented from PluginInterface. |
|
Called when a connection is dropped because the user called RakPeer::CloseConnection() for a particular system
Reimplemented from PluginInterface. |
|
Called when RakPeer is shutdown
Reimplemented from PluginInterface. |
|
OnReceive is called for every packet.
Reimplemented from PluginInterface. |
|
Send the FileList structure to another system, which must have previously called SetupReceive()
|
|
Allows one corresponding Send() call from another system to arrive.
|