encapsulation of net logic in core

This commit is contained in:
2026-03-26 12:13:43 +07:00
parent 6a0eafd2f5
commit cb837c08f2
12 changed files with 26 additions and 25 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ use netrunner_logger::{debug, error};
use tokio::net::UdpSocket;
use tokio::sync::mpsc;
pub async fn run_tcp_bridge<R, W>(
pub(crate) async fn run_tcp_bridge<R, W>(
stream_id: u32,
mut reader: R,
mut writer: W,
@@ -72,7 +72,7 @@ pub async fn run_tcp_bridge<R, W>(
muxer.remove_stream(stream_id);
}
pub async fn run_udp_bridge(
pub(crate) async fn run_udp_bridge(
stream_id: u32,
socket: UdpSocket,
muxer: Muxer,