Esempio n. 1
0
        public ushort SetupReceive(FileListTransferCBInterface handler, bool deleteHandler, SystemAddress allowedSender)
        {
            ushort ret = SLikeNetPINVOKE.FileListTransfer_SetupReceive(swigCPtr, FileListTransferCBInterface.getCPtr(handler), deleteHandler, SystemAddress.getCPtr(allowedSender));

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static HandleRef getCPtr(FileListTransferCBInterface obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Esempio n. 3
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);
        }