mod net_params;
pub mod net_pub;
pub mod smart_log;
pub mod smart_pub;
pub mod tcp_client;
mod tcp_connection;
pub mod tcp_server;
pub mod udp_client;
mod udp_connection;
pub mod udp_server;
pub use net_params::{STcpClientParams, STcpServerParams, SUdpClientParams, SUdpServerParams};
pub use net_pub::{INetCallBack, INetwork};
pub use tcp_client::CTcpClient;
pub use tcp_server::CTcpServer;
pub use udp_client::CUdpClient;
#[cfg(test)]
mod tests {
use std::thread;
use super::*;
#[test]
fn log_test() {
use smart_log::{get_log_subscriber, };
let _subscriber = get_log_subscriber("info".into(), "logs", "app.log");
let span_start = tracing::span!(tracing::Level::INFO, "start");
let _ = span_start.enter();
tracing::info!("test info");
tracing::warn!("test warn");
thread::sleep(std::time::Duration::from_secs(5));
}
}