This thread is archived
2 Replies Last post: Jun 1, 2007 2:28 AM by narcis  
narcis Bronze 8 posts since
May 23, 2007
Currently Being Moderated

Jun 1, 2007 1:54 AM

feedback about outgoing file transfers status

How can I find when the user that I''m sending a file stop the file transfer?

 

I use the follow pattern:

 

while(!outgoingFileTransfer.isDone()) {
// updating a progress bar widget
// get some sleep a little

}

 

//  get the status and give appropriate feedback

 

The bad luck it''s that the file transfer isn''t done when the receiver cancel a previously started transfer.

When i receive a file, that piece of code works fine...

 

What''s wrong here or what is the work-around needed to make things happen?

 

Thanks!

 

P.S.: I test my Jabber client using Spark for receive the file; it''s there any problem? Because I''ve seen that the IQ.set packet is send by Spark after that the file transfer requestor close the file transfer.

 

Message was edited by: narcis

Alex Wenckus Jiver 1,028 posts since
Jan 13, 2005
Currently Being Moderated
May 31, 2007 12:39 PM in response to: narcis
Re: feedback about outgoing file transfers status

The problem is mostly at the protocol level. There is no provision after the initial file transfer negotiation to "cancel" a file transfer, so the local client is forced to make a best guess that the file transfer has ended - an arbitrary timeout or something along those lines.

 

Thanks,

Alex

More Like This

  • Retrieving data ...