-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can I receive the progress during sending the file? #16
Comments
If you're using IBB, this should be pretty simple—just compare the number of bytes received with the total number of bytes in the transfer. For SOCKS5, you'll have to devise another way. It's not included by default. |
If I set disableSOCKS5 = YES,then I set to use IBB.
this 3 method only be called when the action begin/succeeded/fail ,but not being called during the progress. |
Sir,I found part of the answer: -(void)socket:(GCDAsyncSocket *)sock didReadPartialDataOfLength:(NSUInteger)partialLength tag:(long)tag I add all the partialLength together then I get the value almost equal to the file's data length.(Both work for IBB and Socket5), when sending the file,the value is gradually equal to the file's data length ,then I know the progress. |
Sir, more a question,can I receive the progress during sending the file?
I mean ,can I get "0.6M/2.0M" ,"1.2M/2.0M","1.8M/2.0M","Finish" such information during sending the file?
I had read the XMPPIncomingFileTransfer.h and /XMPPFramework/Extensions/XEP-0065 XEP-0066,but
can't find any useful information...
Thanks
The text was updated successfully, but these errors were encountered: