ndn_faces/net/mod.rs
1//! # `ndn_faces::net` — Network transport faces
2//!
3//! IP-based face implementations for communicating with remote NDN nodes over
4//! UDP, TCP, multicast UDP, and WebSocket transports.
5//!
6//! ## Key types
7//!
8//! - [`UdpFace`] — unicast UDP face
9//! - [`MulticastUdpFace`] — multicast UDP face for link-local discovery
10//! - [`TcpFace`] — stream-oriented TCP face
11//! - [`WebSocketFace`] — WebSocket face (requires the `websocket` feature, enabled by default)
12//! - [`LpReliability`] — NDNLPv2 reliability/retransmission layer
13
14#![allow(missing_docs)]
15
16pub mod multicast;
17pub mod reliability;
18pub mod tcp;
19pub mod udp;
20
21#[cfg(feature = "websocket")]
22pub mod websocket;
23
24pub use multicast::MulticastUdpFace;
25pub use ndn_packet::fragment::DEFAULT_UDP_MTU;
26pub use reliability::{LpReliability, ReliabilityConfig, RtoStrategy};
27pub use tcp::{TcpFace, tcp_face_connect, tcp_face_from_stream};
28pub use udp::UdpFace;
29
30#[cfg(feature = "websocket")]
31pub use websocket::WebSocketFace;
32
33#[cfg(feature = "websocket-tls")]
34pub use websocket::{TlsConfig, TlsWebSocketFace, WebSocketListener};