Closed thombles closed 5 years ago
When you bind to a dynamically allocated port by specifying 0, it is necessary to query the socket after bind() to see which port was selected by the OS. A local_addr() wrapper is provided for sync. This change adds it for async.
bind()
local_addr()
When you bind to a dynamically allocated port by specifying 0, it is necessary to query the socket after
bind()
to see which port was selected by the OS. Alocal_addr()
wrapper is provided for sync. This change adds it for async.