Expand description
The net_utils
module assists with networking
Structs§
- Socket
Config - UdpSocket
Pair - A data type representing a public Udp socket
Constants§
- DEFAULT_
IP_ ECHO_ SERVER_ THREADS - MAX_
PORT_ COUNT_ PER_ MESSAGE - MINIMUM_
IP_ ECHO_ SERVER_ THREADS - MINIMUM_
VALIDATOR_ PORT_ RANGE_ WIDTH - VALIDATOR_
PORT_ RANGE
Functions§
- bind_
common - bind_
common_ in_ range - bind_
common_ with_ config - bind_
in_ range - bind_
in_ range_ with_ config - bind_
more_ with_ config - bind_to
- bind_
to_ with_ config - bind_
two_ in_ range_ with_ offset - bind_
two_ in_ range_ with_ offset_ and_ config - bind_
with_ any_ port - find_
available_ port_ in_ range - get_
cluster_ shred_ version - get_
public_ ip_ addr - Determine the public IP address of this machine by asking an ip_echo_server at the given address
- ip_
echo_ server - Starts a simple TCP server on the given port that echos the IP address of any peer that connects. Used by |get_public_ip_addr|
- is_host
- is_
host_ port - multi_
bind_ in_ range - parse_
host - parse_
host_ port - parse_
port_ or_ addr - parse_
port_ range - verify_
reachable_ ports