tcplane 8.1.0

tcplane is a lightweight and high-performance Rust TCP server library designed to simplify network service development. It supports TCP communication, data stream management, and connection handling, focusing on providing efficient low-level network connections and data transmission capabilities, making it ideal for building modern network services.
Documentation
use crate::*;

/// Default host address for the server.
pub const DEFAULT_HOST: &str = "0.0.0.0";

/// Default listening port for the server.
pub const DEFAULT_PORT: u16 = 8080;

/// Default buffer size for network operations (4KB).
pub const DEFAULT_BUFFER_SIZE: usize = 4096;

/// Default socket address.
pub const DEFAULT_SOCKET_ADDR: SocketAddr =
    SocketAddr::new(std::net::IpAddr::V4(std::net::Ipv4Addr::new(0, 0, 0, 0)), 0);

/// Colon symbol used in address formatting.
pub const COLON: &str = ":";

/// Colon with space for display formatting.
pub const COLON_SPACE: &str = ": ";

/// Request separator bytes for detecting end of request.
pub const SPLIT_REQUEST_BYTES: &[u8] = b"\r\n\r\n";