Struct libicmp::icmp::Icmp [] [src]

pub struct Icmp { /* fields omitted */ }

An object for sending and receiving ICMP messages.

Methods

impl Icmp
[src]

[src]

Creates a new object for sending and receiving ICMP messages between the local machine and a host machine identified by ip.

[src]

Polls for new messages. Returns true if data becomes available before the timeout expires.

[src]

Send an echo request with an incrementing sequence number.

[src]

Issue a non-blocking read for any available echo replies from the host. Returns an object representing the reply and the time elapsed between sending the request and receiving its reply.