[jdev] Transfer File problem
JOSEMCANTERO
JOSEMCANTERO at terra.es
Thu Dec 9 10:20:31 CST 2004
Ok, I'm trying to do CONNECT with the same socket and it doesn't work,
I use sha1(streamid+initiatorid+targetid) as host and the port 0. I
think the problem is that the host must be an ip number
and with SHA1 doesn't return the ip number requested (when I
use "gethostbyname"). Could you tell me what's wrong?
Thanks
----- Mensaje Original -----
De: Justin Karneges <justin-keyword-jabber.093179 at affinix.com>
Fecha: Sábado, Diciembre 4, 2004 6:21 pm
Asunto: Re: [jdev] Transfer File problem
> On Saturday 04 December 2004 12:00 pm, JOSEMCANTERO wrote:
> > Hello
> >
> > i'm developing a flash jabber client and now I'm researching how to
> > transfer files between jabber clients. I'm using "JEP-96 File
> > Transfer".
> >
> > According to this protocol, target must create a socket with
> initiator> in accordance with an ip number and port and then it
> must connect to a
> > second socket. This second socket must connect with sha1
> > (sid+initiatorjid+targetjid) in port number 0. The problem is
> that I
> > can't connect to this second host and I don't know how to do it
for
> > tranfering the file through the socket. I create the socket with
> php.
> There is only one socket. There is no "second socket". The
> request for
> host=sha1/port=0 is sent over the first (and only) socket.
>
> -Justin
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mail.jabber.org/mailman/listinfo/jdev
>
More information about the JDev
mailing list