[FR] Provide public accessor to acquire peer cname
The authorization connection callback provides various socket-related identifiers, but these do not easily disambiguate some remote connections; e.g. multiple remote connections from the same host: the port value is the only difference, but this is from the server's POV.
The cname
is a useful identifier, but (AFAICT) this is only available from the stats; it can be used, but we have to wait for stats to arrive (and, in some configurations, this only happens once data starts to flow - even though the connection has been made).
The cname
field is available in the rist_peer
struct, but this struct is opaque. This could be accessed via trickery (as described in the Wiki), but it would be useful if an accessor was provided: much like rist_peer_get_id
.