<div dir="ltr">Andrea<div><br></div><div>Thanks for taking the time to reply and for the advice.  I have just this second discovered this method:</div><div><br></div><div>TO_OR_CIRCUIT(circ)->p_chan->get_remote_descr(TO_OR_CIRCUIT(circ)->p_chan, 0)<br>

</div><div><br></div><div>which returns the endpoint as a string.  I wonder, is this safer/future proof or should this approach be discouraged?</div><div><br></div><div>Best</div><div>Gareth</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On 24 July 2014 12:20, Gareth Owen <span dir="ltr"><<a href="mailto:gareth.owen@port.ac.uk" target="_blank">gareth.owen@port.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hi all<div><br></div><div>Quick question, how does one turn channel_t into an IP address, e.g. given a circuit_t how do I get the IP address of the previous and next hop (noting that they might not be in the consensus so I cant use the identity hash).  I can see the information is in the connection_t struct but I don't know how to get that from the channel/circuit.</div>


<div><br></div><div>Any help appreciated.</div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Gareth<br clear="all"><div><br></div>-- <br><div dir="ltr">Dr Gareth Owen<div>Senior Lecturer</div>

<div>School of Computing, University of Portsmouth</div>
<div><br></div><div>Tel: <a href="tel:02392%20846423" value="+442392846423" target="_blank">02392 846423</a></div><div>Web: <a href="http://ghowen.me" target="_blank">ghowen.me</a></div></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Dr Gareth Owen<div>Senior Lecturer</div><div>School of Computing, University of Portsmouth</div><div><br></div><div>Tel: 02392 846423</div><div>

Web: <a href="http://ghowen.me" target="_blank">ghowen.me</a></div></div>
</div>