fn connect(addr: &SocketAddr) -> io::Result<ServiceStream> {
        let stream = try!(TcpStream::connect(addr));
        let res    = ServiceStream {
            stream: stream
        };
        
        Ok(res)
    }
/// Connect to a given TCP socket address.
Connect to a given TCP socket address.
Connect to a given TCP socket address .
fn connect(addr: &SocketAddr) -> io::Result<ServiceStream> {
        let stream = try!(TcpStream::connect(addr));
        let res    = ServiceStream {
            stream: stream
        };
        Ok(res)
    }
fn connect ( addr : & SocketAddr ) -> io :: Result < ServiceStream > { let stream = try ! ( TcpStream connect ( addr ) ) ; let res = ServiceStream { stream : stream } ; Ok ( res ) }
Connect to a given TCP socket address.
Connect to a given TCP socket address .
addr
&SocketAddr
addr
&SocketAddr