OK, thank you very much!<br>besides,  is it possible to get the cypher key for decoding the tcpdump captured packets on the TOR client??<br><br><div class="gmail_quote">2012/10/30 Damian Johnson <span dir="ltr"><<a href="mailto:atagar@torproject.org" target="_blank">atagar@torproject.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">> Hi, I'm new to Tor controller,<br>
><br>
> Tor client usually open 3 circuits, one for current use and the other 2 for<br>
> standby.<br>
><br>
> Tor will change the current circuit/path in use from time to time, depending<br>
> on the network load dynamics<br>
><br>
> I'm wondering whether it is possible to use Tor controller to detect when<br>
> the circuit/path in use is changed<br>
> and obtain the list of IP addresses of those relay nodes.<br>
<br>
</div></div>Hi esolve. I'm pretty sure that you'll simply want to write a script<br>
that listens for CIRC events...<br>
<a href="https://gitweb.torproject.org/torspec.git/blob/HEAD:/control-spec.txt#l1232" target="_blank">https://gitweb.torproject.org/torspec.git/blob/HEAD:/control-spec.txt#l1232</a><br>
<br>
The main controller libraries at present are...<br>
<br>
- txtorcon (<a href="https://txtorcon.readthedocs.org/en/latest/" target="_blank">https://txtorcon.readthedocs.org/en/latest/</a>) - controller<br>
library for twisted apps<br>
- stem (<a href="https://stem.readthedocs.org/en/latest/index.html" target="_blank">https://stem.readthedocs.org/en/latest/index.html</a>) - general<br>
controller library that'll replace TorCtl<br>
- torctl (<a href="https://gitweb.torproject.org/pytorctl.git/" target="_blank">https://gitweb.torproject.org/pytorctl.git/</a>) - the original<br>
and most stable controller library<br>
<br>
If you want an example for using stem then I'd be happy to write you<br>
one later. Ravi and I are currently working to improve its event<br>
handling support so it's presently a bit rough for your use case, but<br>
still perfectly doable.<br>
<br>
Cheers! -Damian<br>
_______________________________________________<br>
tor-dev mailing list<br>
<a href="mailto:tor-dev@lists.torproject.org">tor-dev@lists.torproject.org</a><br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev</a><br>
</blockquote></div><br>