(server) feat:Add TCP server

This commit is contained in:
CaicukunChiji
2025-07-10 18:27:09 +08:00
parent 243a1cb923
commit cd415c0b58
5 changed files with 286 additions and 2 deletions

View File

@ -0,0 +1,15 @@
mod tcp_server;
use tcp_server::TcpServer;
pub(crate) struct NetworkService;
impl NetworkService {
pub(crate) async fn init() {
log::info!("Starting network service...");
tokio::spawn(async { TcpServer::init().await });
log::info!("network service successfully started!");
}
}