[Libtorrent-devel] Adding SOCKS support?
Goran
gkoruga at siol.net
Mon Oct 20 15:31:25 UTC 2008
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
More information about the Libtorrent-devel
mailing list