/// Create a new socket address iterator from a given host info iterator.
Create a new socket address iterator from a given host info iterator.
Create a new socket address iterator from a given host info iterator .
fn new(mut host_iterator: HostInfoIterator<'a>) -> SocketAddrIterator<'a> {
        let saddr_iterator = host_iterator.next()
            .map(|host| host.socket_addrs());
        SocketAddrIterator {
            host_iterator:  host_iterator,
            saddr_iterator: saddr_iterator
        }
    }
fn new ( mut host_iterator : HostInfoIterator < ' a > ) -> SocketAddrIterator < ' a > { let saddr_iterator = host_iterator . next ( ) . map ( | host | host . socket_addrs ( ) ) ; SocketAddrIterator { host_iterator : host_iterator , saddr_iterator : saddr_iterator } }
Create a new socket address iterator from a given host info iterator.
Create a new socket address iterator from a given host info iterator .
host_iterator
HostInfoIterator<'a>