nplexity / xmpp-file-transfer-demo

iOS demo application using XMPPFramework for file transfer.
43 stars 24 forks source link

error while sending the file to other user #4

Open EvaniRam opened 9 years ago

EvaniRam commented 9 years ago

thanks @jonstaff , i have a small issue while i am trying to send file to other user. my log is showing the following errors:

2014-11-10 15:23:16:487 FileTransferDemo[2584:807] XMPPOutgoingFileTransfer: startFileTransfer: 2014-11-10 15:23:16:487 FileTransferDemo[2584:807] You messed something up: Error Domain=XMPPOutgoingFileTransferErrorDomain Code=-1 "You must be connected to send a file" UserInfo=0x170460f00 {NSLocalizedDescription=You must be connected to send a file}

i was able to get the presence from other user but the file transfer fails with error : "You must be connected to send a file" . Is it necessary that the "Recipient" should also be online for file transfer ??.

guptatarun84 commented 9 years ago

Hi,

Did you get rid of this error? I am also facing the same issue

Thanks.

jonstaff commented 9 years ago

Both parties must be online in order for the file transfer to work successfully.

guptatarun84 commented 9 years ago

Ya, my mistake! Thanks @jonstaff for your valuable inputs here!

guptatarun84 commented 9 years ago

One more problem-> I could able to transfer a file using localhost, but when I connect my simulator to an server wifi, it show me an error "AppDelegate: Stream disconnected with error: Error Domain=NSPOSIXErrorDomain Code=57 "The operation couldn’t be completed. Socket is not connected" I am setting up an server on different machine and communicating using IP address to the router connected.

jonstaff commented 9 years ago

I'm not really sure what you're asking here.

guptatarun84 commented 9 years ago

Sorry for not being clear, My query now is- I cant able to listen the incoming file sent by an another device on the same network using sockS5 connection. I am trying to send an file from an android device to iPhone simulator.

guptatarun84 commented 9 years ago

I could somehow able to figure out the mistake I am making. But, now I am getting this error "unable use a direct connection; trying the provided streamhost". The file transfer is happening via mod_proxy65 and not by direct connection. Please help me in getting this solved.