Skip to main content

Crate netsem

Crate netsem 

Source
Expand description

§netsem

netsem (Network Semantics) provides pure, synchronous utilities for parsing, classifying, and validating IP addresses, ports, and socket addresses.

It offers a strict separation between logic/validation and OS-level operations. OS-level checks (binding, connecting) are available only via the check feature.

Re-exports§

pub use error::NetSemError;
pub use ip::IpClass;
pub use ip::classify_ip;
pub use ip::is_valid_ip_literal;
pub use ip::parse_ip;
pub use port::PortClass;
pub use port::classify_port;
pub use port::validate_port;
pub use port::validate_port_or_zero;
pub use port::check_bind_tcp;
pub use port::check_bind_udp;
pub use port::check_connect_tcp;
pub use port::check_connect_udp;
pub use socket::validate_socket_addr;

Modules§

error
Error types and handling.
ip
IP address parsing and classification.
port
Port validation, classification, and OS-level checks.
socket
Socket address validation and binding checks.