file transfer
From: "Martin Acevedo" <acevedoma@xxxxxxxxxxx>
Date: Wed, 4 Jul 2007 02:46:35 +0200 (CEST)
hello, I have been using gloox and it works very well for chat, vcards, etc. now I would like to implement file transfer but I have some issues how to use it...

I have been testing the sample application and it works, but I don´t figure out how to correlate two of the events in file transfer for multiple transfer..

first I receive event "handleFTRequest" , then I accept with the transfer using the method "acceptFT", finally I use the methods "handleFTSOCKS5Bytestream" and "handleSOCKS5Data" to actually transfer the data

"handleFTSOCKS5Bytestream" and "handleSOCKS5Data" receive a SOCKS5Bytestream as parameter and the method "handleFTRequest" receive a bounch of parameters (name, size, etc) but I don´t know if a I can match some data between SOCKS5Bytestream and the handleFTRequest parameters, I need this data because I would like to have the file name, and file size during the file transfer, but I cannot store them in global variables since the program may have many simultaneous transfers, and they could be accepted in differented order....

thank you very much!!!!

_________________________________________________________________
Visita MSN Latino Entretenimiento: ¡música, cine, chismes, TV y más...! http://latino.msn.com/entretenimiento/