pub async fn tcp_connect(addr: SocketAddr) -> Result<Io> {
        let sock = glommio::net::TcpStream::connect(addr).await?;
        sock.set_nodelay(true)?;
        Ok(Io::new(TcpStream::new(sock)))
    }
/// Opens a TCP connection to a remote host.
Opens a TCP connection to a remote host.
Opens a TCP connection to a remote host .
pub async fn tcp_connect(addr: SocketAddr) -> Result<Io> {
        let sock = glommio::net::TcpStream::connect(addr).await?;
        sock.set_nodelay(true)?;
        Ok(Io::new(TcpStream::new(sock)))
    }
pub async fn tcp_connect ( addr : SocketAddr ) -> Result < Io > { let sock = glommio :: net :: TcpStream :: connect ( addr ) . await ? ; sock . set_nodelay ( true ) ? ; Ok ( Io :: new ( TcpStream :: new ( sock ) ) ) }
Opens a TCP connection to a remote host.
Opens a TCP connection to a remote host .
addr
SocketAddr
addr
SocketAddr