<span style="font-family:arial;color:rgb(34, 34, 34)">Hey
 all, I want to get to know the TOR codebase so I can contribute to the
project. To do this I have been doing a few projects of just doing sort
of basic tasks to get an idea for how it all works together. One thing
that is giving me a bit of trouble but seems like it should be simple is
 finding the source port for a conn object. How do I find this and
moreover how do I find the actual socket behind a given connection? In
connection_t I see <span>tor_socket_t</span> but it seems to just be an int value.</span><div style="font-family:arial;color:rgb(34, 34, 34)"><br></div><div style="font-family:arial;color:rgb(34, 34, 34)"><br></div><span style="font-family:arial;color:rgb(34, 34, 34)">Thanks</span>