1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
#![warn(missing_docs)]
//! This crate provides a simply way to start a tunneler
//! server and client that can also easily be integradted into
//! other projects allowing you to expose your services running
//! in a private network to be exposed through a public server
/// The current Protocol-Version, which is used by this implementation
///
/// Version:
/// * 0: This Version combines all the Versions before Version tracking for the Protcol was
/// introduced
/// * 1: The first Version of the tracked Protocol Version, which is compatible with the last
/// Protcol of Version 0
const PROTOCOL_VERSION: u16 = 1;
#[macro_use]
mod logging;
#[cfg(feature = "client")]
pub mod client;
mod connections;
pub use connections::Destination;
/// Messages are used for all Communication between Server and Client
pub mod message;
#[cfg(feature = "server")]
pub mod server;
mod streams;
/// All the Metrics related functionality
pub mod metrics;
pub(crate) mod general;
pub use general::Details;
pub(crate) mod handshake;