[jdev] Re: Implementing SOCKS5 file transfers

Alexander Wenckus awenckus at mindbridge.com
Wed Jun 29 13:19:19 CDT 2005


Acting as stream initiator and stream host I need to send a bind? Or I 
need to wait for the target it to me? I didnt see the bind in the 
negotiation where I was the target and was successful in establishing 
the connection, I would think it would be the exact same negotiation 
only reversed. Any ideas?

Thanks
Alex

Zhong Li wrote:

>You need send BIND( X'02') first, 
>
>buffer[0]=SOCKS_VER5;
>buffer[1]=2;
>buffer[2]=RSV_DEFAULT;
>buffer[3]=2;
>outs.write(buffer,0,4);
>
>
>Zhong Li
>
>_______________________________________________
>jdev mailing list
>jdev at jabber.org
>http://mail.jabber.org/mailman/listinfo/jdev
>
>  
>



More information about the JDev mailing list