Docs.rs
  • solana-net-utils-2.1.21
    • solana-net-utils 2.1.21
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • anza-team
    • Dependencies
      • bincode ^1.3.3 normal
      • clap ^3.1.5 normal optional
      • crossbeam-channel ^0.5.13 normal
      • log ^0.4.22 normal
      • nix ^0.29.0 normal
      • rand ^0.8.5 normal
      • serde ^1.0.213 normal
      • serde_derive ^1.0.213 normal
      • socket2 ^0.5.7 normal
      • solana-logger =2.1.21 normal optional
      • solana-sdk =2.1.21 normal
      • solana-version =2.1.21 normal optional
      • tokio ^1.43.0 normal
      • url ^2.5.2 normal
      • solana-logger =2.1.21 dev
    • Versions
    • 10.81% of the crate is documented
  • Go to latest version
  • Platform
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

solana_net_utils2.1.21

  • All Items

Crate Items

  • Structs
  • Constants
  • Functions
  • Type Aliases

Crate solana_net_utils

Source
Expand description

The net_utils module assists with networking

Structs§

SocketConfig
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
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

Type Aliases§

IpEchoServer
PortRange