Module diem_config::utils
source · Functions
- Return an ephemeral, available port. On unix systems, the port returned will be in the TIME_WAIT state ensuring that the OS won’t hand out this port for some grace period. Callers should be able to bind to this port given they use SO_REUSEADDR.
- Extracts one local non-loopback IP address, if one exists. Otherwise returns None.