/dports/devel/raknet/raknet-3.9.2_10,1/DependentExtensions/Autopatcher/ |
H A D | AutopatcherClient.cpp | 44 if (input->onFileStruct.context.op==PC_WRITE_FILE) in AutopatcherClientWorkerThread() 51 …if (WriteFileWithDirectories(newDir, (char*)input->onFileStruct.fileData, input->onFileStruct.byte… in AutopatcherClientWorkerThread() 169 if (info->onFileStruct.fileData) in StopThreads() 181 if (info->onFileStruct.fileData) in StopThreads() 209 threadInfo->onFileStruct.fileData=0; in Update() 225 threadInfo->onFileStruct.fileData=0; in Update() 260 threadInfo->onFileStruct.fileData=0; in Update() 270 if (threadInfo->onFileStruct.fileData) in Update() 310 memcpy(&(inStruct->onFileStruct), onFileStruct, sizeof(OnFileStruct)); in OnFile() 316 onFileCallback->OnFile(onFileStruct); in OnFile() [all …]
|
/dports/devel/raknet/raknet-3.9.2_10,1/Samples/AutopatcherClient/ |
H A D | AutopatcherClientTest.cpp | 24 virtual bool OnFile(OnFileStruct *onFileStruct) in OnFile() argument 26 if (onFileStruct->context.op==PC_HASH_WITH_PATCH) in OnFile() 28 else if (onFileStruct->context.op==PC_WRITE_FILE) in OnFile() 30 else if (onFileStruct->context.op==PC_ERROR_FILE_WRITE_FAILURE) in OnFile() 40 else if (onFileStruct->context.op==PC_NOTICE_FILE_DOWNLOADED) in OnFile() 48 …printf("%i. (100%%) %i/%i %s %ib / %ib\n", onFileStruct->setID, onFileStruct->fileIndex+1, onFileS… in OnFile() 49 onFileStruct->fileName, onFileStruct->byteLengthOfThisFile, in OnFile() 50 onFileStruct->byteLengthOfThisSet); in OnFile() 59 …fps->onFileStruct->fileIndex+1, fps->onFileStruct->numberOfFilesInThisSet, fps->onFileStruct->file… in OnFileProgress() 60 fps->onFileStruct->byteLengthOfThisFile, in OnFileProgress() [all …]
|
/dports/devel/raknet/raknet-3.9.2_10,1/Source/ |
H A D | FileListTransfer.cpp | 284 onFileStruct.senderGuid=packet->guid; in DecodeFile() 289 onFileStruct.fileData=0; in DecodeFile() 299 inBitStream >> onFileStruct.context; in DecodeFile() 301 inBitStream.Read(onFileStruct.setID); in DecodeFile() 330 onFileStruct.bytesDownloadedForThisFile=onFileStruct.byteLengthOfThisFile; in DecodeFile() 339 inBitStream.Read((char*)onFileStruct.fileData, onFileStruct.byteLengthOfThisFile); in DecodeFile() 355 fps.onFileStruct=&onFileStruct; in DecodeFile() 406 onFileStruct.bytesDownloadedForThisFile=onFileStruct.byteLengthOfThisFile; in DecodeFile() 409 fps.onFileStruct=&onFileStruct; in DecodeFile() 614 onFileStruct.fileData=0; in OnReferencePush() [all …]
|
H A D | DirectoryDeltaTransfer.cpp | 29 virtual bool OnFile(OnFileStruct *onFileStruct) in OnFile() argument 33 …if (onFileStruct->fileName && onFileStruct->fileData && subdirLen < strlen(onFileStruct->fileName)) in OnFile() 36 strcat(fullPathToDir, onFileStruct->fileName+subdirLen); in OnFile() 37 …WriteFileWithDirectories(fullPathToDir, (char*)onFileStruct->fileData, (unsigned int ) onFileStruc… in OnFile() 42 return onFileCallback->OnFile(onFileStruct); in OnFile() 49 if (fps->onFileStruct->fileName && subdirLen < strlen(fps->onFileStruct->fileName)) in OnFileProgress() 52 strcat(fullPathToDir, fps->onFileStruct->fileName+subdirLen); in OnFileProgress()
|
H A D | FileListTransferCBInterface.h | 69 OnFileStruct *onFileStruct; member 115 virtual bool OnFile(OnFileStruct *onFileStruct)=0;
|
/dports/devel/raknet/raknet-3.9.2_10,1/Samples/AutopatcherClientGFx3.0/ |
H A D | AutopatcherClientGFx3Impl.cpp | 29 virtual bool OnFile(OnFileStruct *onFileStruct) in OnFile() argument 33 if (onFileStruct->context.op==PC_HASH_WITH_PATCH) in OnFile() 35 else if (onFileStruct->context.op==PC_WRITE_FILE) in OnFile() 37 else if (onFileStruct->context.op==PC_ERROR_FILE_WRITE_FAILURE) in OnFile() 47 else if (onFileStruct->context.op==PC_NOTICE_FILE_DOWNLOADED) in OnFile() 55 …en(buff), "%i. (100%%) %i/%i %s %ib / %ib\n", onFileStruct->setID, onFileStruct->fileIndex+1, onFi… in OnFile() 56 onFileStruct->fileName, onFileStruct->byteLengthOfThisFile, in OnFile() 57 onFileStruct->byteLengthOfThisSet); in OnFile() 78 sprintf(buff, "%s %ib / %ib\n", fps->onFileStruct->fileName, in OnFileProgress() 79 fps->onFileStruct->bytesDownloadedForThisFile, fps->onFileStruct->byteLengthOfThisFile); in OnFileProgress() [all …]
|
/dports/devel/raknet/raknet-3.9.2_10,1/Samples/DirectoryDeltaTransfer/ |
H A D | DirectoryDeltaTransferTest.cpp | 30 OnFileStruct *onFileStruct) in OnFile() argument 32 assert(onFileStruct->byteLengthOfThisFile >= onFileStruct->bytesDownloadedForThisFile); in OnFile() 33 …onFileStruct->setID, onFileStruct->fileIndex+1, onFileStruct->numberOfFilesInThisSet, onFileStruct… in OnFile() 42 assert(fps->onFileStruct->byteLengthOfThisFile >= fps->onFileStruct->bytesDownloadedForThisFile); in OnFileProgress() 43 …printf("%i (%i%%) %i/%i %s %ib / %ib\n", fps->onFileStruct->setID, (int) (100.0*(double)fps->partC… in OnFileProgress() 44 fps->onFileStruct->fileIndex+1, in OnFileProgress() 45 fps->onFileStruct->numberOfFilesInThisSet, in OnFileProgress() 46 fps->onFileStruct->fileName, in OnFileProgress() 47 fps->onFileStruct->byteLengthOfThisFile, in OnFileProgress() 48 fps->onFileStruct->byteLengthOfThisSet, in OnFileProgress()
|
/dports/devel/raknet/raknet-3.9.2_10,1/Samples/FileListTransfer/ |
H A D | main.cpp | 27 OnFileStruct *onFileStruct) in OnFile() argument 30 onFileStruct->setID, in OnFile() 31 onFileStruct->fileIndex+1, in OnFile() 32 onFileStruct->numberOfFilesInThisSet, in OnFile() 33 onFileStruct->fileName, in OnFile() 34 onFileStruct->byteLengthOfThisFile, in OnFile() 35 onFileStruct->byteLengthOfThisSet); in OnFile() 39 fwrite(onFileStruct->fileData, onFileStruct->byteLengthOfThisFile, 1, fp); in OnFile() 59 fps->onFileStruct->setID, in OnFileProgress() 61 fps->onFileStruct->fileIndex+1, in OnFileProgress() [all …]
|