I added the get_peer() function but also kept the connection's get_id() function. It's implemented by returning the peer's ID, but I think it makes sense to keep an explicit function used for the connection's ID. Otherwise I feel like it would be weird to be grabbing the connection's ID from the peer (e.g. when we add a Connection to a Session).
I added the
get_peer()
function but also kept the connection'sget_id()
function. It's implemented by returning the peer's ID, but I think it makes sense to keep an explicit function used for the connection's ID. Otherwise I feel like it would be weird to be grabbing the connection's ID from the peer (e.g. when we add aConnection
to aSession
).