mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
bcdbedc0be
* Add RakNet source files to the VS project
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
#ifndef __FILE_LIST_TRANSFER_CALLBACK_INTERFACE_H
|
|
#define __FILE_LIST_TRANSFER_CALLBACK_INTERFACE_H
|
|
|
|
/// \brief Used by FileListTransfer plugin as a callback for when we get a file.
|
|
/// \sa FileListTransfer
|
|
class FileListTransferCBInterface
|
|
{
|
|
public:
|
|
// Got a file
|
|
virtual void OnFile(
|
|
unsigned fileIndex,
|
|
char *filename,
|
|
char *fileData,
|
|
unsigned compressedTransmissionLength,
|
|
unsigned finalDataLength,
|
|
unsigned short setID,
|
|
unsigned setCount,
|
|
unsigned setTotalCompressedTransmissionLength,
|
|
unsigned setTotalFinalLength,
|
|
unsigned char context)=0;
|
|
|
|
// Got part of a big file. Activate with RakPeer::SetSplitMessageProgressInterval
|
|
virtual void OnFileProgress(unsigned fileIndex,
|
|
char *filename,
|
|
unsigned compressedTransmissionLength,
|
|
unsigned finalDataLength,
|
|
unsigned short setID,
|
|
unsigned setCount,
|
|
unsigned setTotalCompressedTransmissionLength,
|
|
unsigned setTotalFinalLength,
|
|
unsigned char context,
|
|
unsigned int partCount,
|
|
unsigned int partTotal,
|
|
unsigned int partLength) {}
|
|
};
|
|
|
|
#endif
|
|
|