Пример #1
0
 public void Send(FileList fileList, RakPeerInterface rakPeer, SystemAddress recipient, ushort setID, PacketPriority priority, char orderingChannel, IncrementalReadInterface _incrementalReadInterface)
 {
     SLikeNetPINVOKE.FileListTransfer_Send__SWIG_1(swigCPtr, FileList.getCPtr(fileList), RakPeerInterface.getCPtr(rakPeer), SystemAddress.getCPtr(recipient), setID, (int)priority, orderingChannel, IncrementalReadInterface.getCPtr(_incrementalReadInterface));
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public void GenerateHashes(FileList localFiles, string outputSubdir, bool prependAppDirToOutputSubdir)
 {
     SLikeNetPINVOKE.DirectoryDeltaTransfer_GenerateHashes(swigCPtr, FileList.getCPtr(localFiles), outputSubdir, prependAppDirToOutputSubdir);
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #3
0
 public virtual void OnFile(FileList fileList, string dir, string fileName, uint fileSize)
 {
     SLikeNetPINVOKE.FileListProgress_OnFile(swigCPtr, FileList.getCPtr(fileList), dir, fileName, fileSize);
 }
Пример #4
0
 public virtual void OnDirectory(FileList fileList, string dir, uint directoriesRemaining)
 {
     SLikeNetPINVOKE.FileListProgress_OnDirectory(swigCPtr, FileList.getCPtr(fileList), dir, directoriesRemaining);
 }
Пример #5
0
 public virtual void OnAddFilesFromDirectoryStarted(FileList fileList, string dir)
 {
     SLikeNetPINVOKE.FileListProgress_OnAddFilesFromDirectoryStarted(swigCPtr, FileList.getCPtr(fileList), dir);
 }
Пример #6
0
 public override void OnDirectory(FileList fileList, string dir, uint directoriesRemaining)
 {
     SLikeNetPINVOKE.FLP_Printf_OnDirectory(swigCPtr, FileList.getCPtr(fileList), dir, directoriesRemaining);
 }
Пример #7
0
 public override void OnAddFilesFromDirectoryStarted(FileList fileList, string dir)
 {
     SLikeNetPINVOKE.FLP_Printf_OnAddFilesFromDirectoryStarted(swigCPtr, FileList.getCPtr(fileList), dir);
 }
Пример #8
0
 public void GetDeltaToCurrent(FileList input, FileList output, string dirSubset, string remoteSubdir)
 {
     SLikeNetPINVOKE.FileList_GetDeltaToCurrent(swigCPtr, FileList.getCPtr(input), FileList.getCPtr(output), dirSubset, remoteSubdir);
 }
Пример #9
0
 public void ListMissingOrChangedFiles(string applicationDirectory, FileList missingOrChangedFiles, bool alwaysWriteHash, bool neverWriteHash)
 {
     SLikeNetPINVOKE.FileList_ListMissingOrChangedFiles(swigCPtr, applicationDirectory, FileList.getCPtr(missingOrChangedFiles), alwaysWriteHash, neverWriteHash);
 }
Пример #10
0
 public static void DestroyInstance(FileList i)
 {
     SLikeNetPINVOKE.FileList_DestroyInstance(FileList.getCPtr(i));
 }
Пример #11
0
        public ushort DownloadFromSubdirectory(FileList localFiles, string subdir, string outputSubdir, bool prependAppDirToOutputSubdir, SystemAddress host, FileListTransferCBInterface onFileCallback, PacketPriority _priority, char _orderingChannel, FileListProgress cb)
        {
            ushort ret = SLikeNetPINVOKE.DirectoryDeltaTransfer_DownloadFromSubdirectory__SWIG_1(swigCPtr, FileList.getCPtr(localFiles), subdir, outputSubdir, prependAppDirToOutputSubdir, SystemAddress.getCPtr(host), FileListTransferCBInterface.getCPtr(onFileCallback), (int)_priority, _orderingChannel, FileListProgress.getCPtr(cb));

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }