[Libtorrent-devel] Adding SOCKS support?

Simon Labrecque simon at clubbeadplus.com
Mon Oct 20 16:22:09 UTC 2008




On 20/10/08 11:31 AM, "Goran" <gkoruga at siol.net> wrote:

> On Mon, 20 Oct 2008 00:12:34 +0200
> Josef Drexler <josef at ttdpatch.net> wrote:
> 
> Hello.
> 
>> On Oct 19, 2008, at 8:05 PM, Simon Labrecque wrote:
>>>    I'd be willing to add SOCKS support to rtorrent, for peer to
>>> peer connections. If anyone is willing to
>>> help, I'd like to get some tips on where and how to hook it up in
>>> the pipeline,
>>> in order to save some time and be more effective.
>>> 
>> 
>> Have a look at how the HTTP proxy support works, SOCKS would probably
>> be similar. You'll have three components:
>> - torrent::HandshakeManager::create_outgoing to handle the outgoing
>> connection via SOCKS
>> - torrent::ConnectionManager to handle the relevant SOCKS settings
>> - commands_network.cc to create commands for the settings
>> 
>> I don't know how incoming connections would be handled by SOCKS.
> 
> Modern socks libraries are preloadable, have you tried that instead?
> Have a look at dante and its socksify script.
> 
> Regards,
>         Goran

I tried tsocks and another application which I cannot remember the name at
the moment, and found that they did not work correctly with rtorrent. I'll
try your suggestions before I begin adding SOCKS support directly to
libtorrent/rtorrent. In the meantime, if someone has had any success with an
"external" SOCKS tool with rtorrent, please speak up. Thanks!

Simon Labrecque



More information about the Libtorrent-devel mailing list