During a PN_CONNECTION_BOUND event proton socket information is not available. At PN_CONNECTION_REMOTE_OPEN the info is available.
I instrumented an event loop in qpid-dispatch to log the event names as they are delivered and to log the result of creating a qd_connection rhost_port name. The source:
The log file shows:
The "err -6" is a snoop on the return result of getnameinfo(): EAI_FAMILY 'ai_family' not supported. I suspect it's because the returned socket is junk.
The code works correctly in 0.19.0, commit fe3c3