On Sat, Jan 17, 2009 at 08:22:52PM +0100, horscht hamster wrote: > when i open a curcuit in the tor controls using > EXTENDCIRCUIT 0 one,two,three > i get the id of the curcuit as a response: > 250 EXTENDED 13 > > now the problem is that there are 5 other open curcuits and tor just > randomly uses one of those when i connect using the socks protocol. > but the thing is that i want to use this particular curcuit with id 13 for a > specific connection. > it would be convenient if you could specify the curcuits you > want to use by modifying the socks5 authentication line, which is in > my case: > 0x05 0x01 0x00 (and add an id=13 here) > > is this already possible, if not is there any other way to specify the > curcuit i want to use for this particular connection?
setconf __LeaveStreamsUnattached to 1 (you can read about it in section 5.4 of control-spec.txt), and then use "attachstream" (section 3.13) to assign each stream. If you don't want to handle attaching a given stream, just send an attachstream with "0" as the circid and Tor will handle that one. You might also like the TorCtl library, e.g https://svn.torproject.org/svn/torctl/trunk/python/README --Roger

