Re: File transfer. Can't get file info from handleFTSOCKS5Bytestream()
From: Jakob Schröter <js@xxxxxxxxxx>
Date: Sat, 1 Mar 2008 14:50:58 +0100 (CET)
On Wednesday February 6 2008, Artem 'Arepo' Zaitsev wrote:
> Hello,
> I have problem like that ( http://camaya.net/glooxlist/dev/msg00352.html )
> and i can't find solution for it. Could anybody get me some help about
> this?
>
> Thank you very much
>
> >From: "Martin Acevedo" <acevedoma@xxxxxxxxxxx>
> >Date: Wed, 4 Jul 2007 02:46:35 +0200 (CEST)
> > < ... >
> >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....

In 1.0 you can do this via the sid parameter of handleFTRequest() and 
Bytestream::sid().

cheers,
Jakob

Attachment: signature.asc
Description: This is a digitally signed message part.