Finding automatically allocated port

Aug 4, 2015 at 12:39 PM
I've found out the http_listener automatically allocates a port if a port 0 is specified in the URI passed to its constructor. Now I want to know what port has been allocated. I tried accessing listener.uri().port() but that returns zero, not the allocated port number. Is there a way to do this?
Aug 4, 2015 at 10:08 PM
Unfortunately, I don't think we have an API to do this currently.