Expand description
The net_utils module assists with networking
Modules§
Structs§
- SocketConfig Deprecated 
- UdpSocketPair 
- 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 Deprecated 
- binds both a UdpSocket and a TcpListener
- bind_common_ in_ range_ with_ config Deprecated 
- Find a port in the given range with a socket config that is available for both TCP and UDP
- bind_common_ with_ config Deprecated 
- binds both a UdpSocket and a TcpListener on the same port
- bind_in_ range 
- bind_in_ range_ with_ config Deprecated 
- bind_more_ with_ config Deprecated 
- bind_toDeprecated 
- bind_to_ localhost 
- bind_to_ unspecified 
- bind_to_ with_ config Deprecated 
- bind_to_ with_ config_ non_ blocking Deprecated 
- bind_two_ in_ range_ with_ offset Deprecated 
- bind_two_ in_ range_ with_ offset_ and_ config Deprecated 
- bind_with_ any_ port_ with_ config Deprecated 
- find_available_ port_ in_ range 
- Searches for an open port on a given binding ip_addr in the provided range.
- find_available_ ports_ in_ range 
- Searches for several ports on a given binding ip_addr in the provided range.
- get_cluster_ shred_ version 
- Retrieves cluster shred version from Entrypoint address provided.
- get_cluster_ shred_ version_ with_ binding 
- Retrieves cluster shred version from Entrypoint address provided, binds client-side socket to the IP provided.
- get_public_ ip_ addr Deprecated 
- Determine the public IP address of this machine by asking an ip_echo_server at the given address.
- get_public_ ip_ addr_ with_ binding 
- Determine the public IP address of this machine by asking an ip_echo_server at the given address. This function will bind to the provided bind_addreess.
- ip_echo_ server 
- Starts a simple TCP server that echos the IP address of any peer that connects Used by functions like |get_public_ip_addr| and |get_cluster_shred_version|
- is_host
- is_host_ port 
- multi_bind_ in_ range_ with_ config Deprecated 
- binds num sockets to the same port in a range with config
- parse_host 
- parse_host_ port 
- parse_port_ or_ addr 
- parse_port_ range 
- verify_all_ reachable_ tcp 
- Checks if all of the provided TCP ports are reachable by the machine at
ip_echo_server_addr. Tests must complete within timeout provided. Tests will run concurrently when possible, using up to 64 threads for IO. This function assumes that all sockets are bound to the same IP, and will panic otherwise.
- verify_all_ reachable_ udp 
- Checks if all of the provided UDP ports are reachable by the machine at
ip_echo_server_addr. Tests must complete within timeout provided. Tests will run concurrently when possible, using up to 64 threads for IO. This function assumes that all sockets are bound to the same IP, and will panic otherwise