Module sockets

Module sockets 

Source
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.

Structs§

SocketConfigurationDeprecated

Functions§

bind_common_in_range_with_configDeprecated
Find a port in the given range with a socket config that is available for both TCP and UDP
bind_common_with_configDeprecated
binds both a UdpSocket and a TcpListener on the same port
bind_gossip_port_in_rangeDeprecated
bind_in_range_with_configDeprecated
bind_more_with_configDeprecated
bind_toDeprecated
bind_to_localhost_uniqueDeprecated
Bind a UdpSocket to a unique port.
bind_to_with_configDeprecated
bind_two_in_range_with_offset_and_configDeprecated
bind_with_any_port_with_configDeprecated
localhost_port_range_for_testsDeprecated
Retrieve a free 25-port slice for unit tests
multi_bind_in_range_with_configDeprecated
binds num sockets to the same port in a range with config
unique_port_range_for_testsDeprecated
When running under nextest, this will try to provide a unique slice of port numbers (assuming no other nextest processes are running on the same host) based on NEXTEST_TEST_GLOBAL_SLOT variable The port ranges will be reused following nextest logic.