Add a `conn` value to the callback to query more information about the current connection

This is preferable to the solution in #2 since it is extensible to other types of
connections in the future, such as shared memory (which will not fit into the sockaddr
model).