[jdev] RE: File Transfer
Jose Miguel
programacion5 at prodigia.com
Fri Dec 10 07:09:42 CST 2004
Mail Prodigia Consultores S.L.My process is the following:
- I create the socket.
- I do 'CONNECT' with Streamhost (other machine directly) using this socket,
on IP address and port which streamhost sends to me.
- This connection completes successfully.
- I do 'CONNECT' with SHA1(streamid+initiatorjid+targetjid) hostname and
port 0, with the same socket I use for connecting with Streamhost before, it
returns it can't connect.
I don't know if I'm doing it well, I don't know what to do then.
Do I have to wait a success confirmation with second connection, or file
transfer begins automatically using socket_read?
Thanks.
> 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?
>The sha1(streamid+initiatorjid+targetjid) hostname is never used for
>gethostbyname. You give it to the streamhost (be it the proxy
>streamhost or the other person's machine directly) as the destination
>parameter for the SOCKS5 'CONNECT' command.
>Or am I misunderstanding your problem?
>--
>Rachel Blackman <rcb at ceruleanstudios.com>
>Trillian Messenger - http://www.trillian.cc/
==========================================================================
Jose Miguel Cantero .: Dpto. Programación Prodigia Consultores S.L.
www.prodigia.com
email: programacion5 at prodigia.com
Tel: (34) 957 529 016 / Fax: (34) 957 529 143
More information about the JDev
mailing list