Skip to content
Snippets Groups Projects
Commit 366a0515 authored by Paul Marks's avatar Paul Marks
Browse files

port_posix: use IPv4+IPv6 sockets to check for a free port.

This allows the port picker to function across dual-stack and
IPv4/IPv6-only environments.

For a port to be considered available, the kernel must support at least
one of (IPv6, IPv4), and the port must be available on each supported
family.

Also use the bool type where feasible.

This is based on http://cl/97155408 (for those who can read it.)
parent 01eda53c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment