Archived Forum Post

Index of archived forum posts

Question:

FTP /Download Async -> Force Stop

Jun 19 '15 at 08:12

success = [ftp AsyncPutFileStart: localFilename remoteFilename: remoteFilename]; while (ftp.AsyncFinished != YES) { NSLog(@"%d%@",[ftp.AsyncBytesSent intValue],@" bytes sent"); NSLog(@"%d%@",[ftp.UploadTransferRate intValue],@" bytes per second"); // Sleep 1 second. [ftp SleepMs: [NSNumber numberWithInt: 1000]]; }

How can i force to stop Async subprocess?

I've try to "[ftp Disconnect];" and "[ftp AsyncAbort];" No solution???


Answer

FTP Upload/Download Async -> Force Stop

success = [ftp AsyncPutFileStart: localFilename remoteFilename: remoteFilename]; while (ftp.AsyncFinished != YES) { NSLog(@"%d%@",[ftp.AsyncBytesSent intValue],@" bytes sent"); NSLog(@"%d%@",[ftp.UploadTransferRate intValue],@" bytes per second"); // Sleep 1 second. [ftp SleepMs: [NSNumber numberWithInt: 1000]]; }

How can i force to stop Async subprocess?

I've try to "[ftp Disconnect];" and "[ftp AsyncAbort];" No solution???