=head1 NAME ping_iterator_get_info - Receive information about a host =head1 SYNOPSIS #include int ping_iterator_get_info (pingobj_iter_t *iter, int info, void *buffer, size_t *buffer_len); =head1 DESCRIPTION The B method can be used on an host iterator to return various information about the current host. The I argument is an iterator as returned by L or L. The I argument specifies the type of information returned. Use the following defines: =over 4 =item B Return the hostname of the host the iterator points to as supplied by the user. This is the name you passed to L and which you need to pass to C, too. =item B Return the hostname of the host the iterator points to. Since the name is looked up using the socket address this may differ from the hostname passed to L. The hostname is actually looked up every time you call this method, no cache is involved within I. It is recommended to include C and allocate B bytes of buffer. =item B Return the address used in ASCII (i.e. human readable) format. The address is looked up every time you call this method. 40 bytes should be sufficient for the buffer (16 octets in hex format, seven colons and one null byte), but more won't hurt. =item B Returns the address family of the host. The buffer should be big enough to hold an integer. The value is either B or B. =item B Return the last measured latency or less than zero if the timeout occurred before a echo response was received. The buffer should be big enough to hold a double value. =item B Return the number of times that no response was received within the timeout. This value is only increased but may wrap around at the 32Ebit boundary. The buffer should be big enough to hold a 32Ebit integer, e.Eg. an C. =item B Return the last sequence number sent. This number is increased regardless of echo responses being received or not. The buffer should hold an integer. =item B Return the ident that is put into every ICMP packet sent to this host. Per convention this usually is the PID of the sending process, but since I can handle several hosts in parallel it uses a (pseudo-)random number here. The buffer should be big enough to hold an integer value. =item B Returns the I