-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new function: aws_socket_get_bound_address() (#491)
Enable users to bind on port 0, which has the OS assign a port, and then query which port it ended up with. The socket stores this address during `aws_socket_bind()` call, which allows `aws_socket_get_bound_address()` to be const and avoid any tricky threading issues where the socked closes on another thread. Also fix a few subtle bugs in Windows socket code. Co-authored-by: Vitaly Khalmansky <[email protected]>
- Loading branch information
Showing
5 changed files
with
413 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.