File Transfer Related Issues

Hi,

I am studying Send File/Receive File functions using SMACK API.

If multiple file were send at the same time, there seems to have some sort

of conflicts when creating the SendFile object:

sendFile = new SendFile( fileDetails, host, port, id, from, to);

SendFile throws exceptions complaining about the host or nio not available.

The question is how to send different files to different targets at the same time using

the new Smack file transfer related APIs. I am also interested to know that

if it is possible to send a single file to multiple users at the same time.

– Scott

Where did you get the FileTransfer code?

Hi Synic,

I think I download JBother source from the Source Control and these smack jar files

are included. I am not sure if they are the same as the latest SMACK cvs tree

on 3-10. I did not verify! Anyway, I am using JBother as a learning tool to study the

SMACK API. Thanks for providing JBother as open source Smack Based Jabber client.

– Scott

Ah, ok. Unfortunately I can’‘t help much because I didn’'t write that code. Maybe coquelicot can help you out more.

If you want to take a look at the filetransfer code (or anyone else), I’'ve set up my own subversion repo for our smack changes at http://linuxhelp.homeunix.com/usr/local/svnanon/smack-dev

Adam

Adam,

The link seems not working for me!

http://linuxhelp.homeunix.com/usr/local/svnanon/smack-dev

I would love to take a look at the filetransfer code and help

if I could.

Thanks!

– Scott

Err, sorry, that’'s svn://linuxhelp.homeunix.com/usr/local/svnanon/smack-dev

Err, sorry, that’'s

svn://linuxhelp.homeunix.com/usr/local/svnanon/smack-d

ev

It seems that this link requires authentication and

a username and password is needed.

Thanks

Nah, it only requires authentication to commit. You should just be able to type:

svn checkout svn://linuxhelp.homeunix.com/usr/local/svnanon/smack-dev

Is there a chance that this will get integrated in the upstream Smack?

Hey guys,

Sure. Anyone that is willing to contribute code to the library can drop me an email.

Regards,

– Gato

I’'ll get in touch once we have all the kinks worked out