//! Scanner utility functions.
//!
//! This module handles the initialization of the low-level network transport channels
//! required by the `pnet` library.
use ;
/// Initializes the transport layer for raw socket communication.
///
/// This function creates a channel that operates at Layer 3 (Network Layer).
/// This allows the scanner to read and write raw IP packets directly,
/// specifically filtering for TCP traffic.
///
/// # Returns
///
/// Returns a tuple containing:
/// * `TransportSender`: Used to send raw packets.
/// * `TransportReceiver`: Used to read incoming packets.
///
/// # Panics
///
/// Panics if the OS refuses to open a raw socket (e.g., if run without `sudo`/Administrator privileges).
///
/// # Notes
///
/// TODO: The current implementation uses `expect` to handle initialization failures.
/// Future updates will return a `Result` to handle permission errors more gracefully.
pub