use crate::{DistantManager, DistantManagerConfig}; use distant_net::{ Codec, FramedTransport, IntoSplit, MappedListener, PortRange, TcpListener, TcpServerRef, }; use std::{io, net::IpAddr}; impl DistantManager { /// Start a new server by binding to the given IP address and one of the ports in the /// specified range, mapping all connections to use the given codec pub async fn start_tcp
(
config: DistantManagerConfig,
addr: IpAddr,
port: P,
codec: C,
) -> io::Result