… | |
… | |
37 | seconds between pings to the given range. If omitted, defaults to |
37 | seconds between pings to the given range. If omitted, defaults to |
38 | $send_interval. |
38 | $send_interval. |
39 | |
39 | |
40 | The $send_interval is the minimum interval between sending any two |
40 | The $send_interval is the minimum interval between sending any two |
41 | packets and is a way to make an overall rate limit. If omitted, |
41 | packets and is a way to make an overall rate limit. If omitted, |
42 | pings will be send as fast as possible. |
42 | pings will be sent as fast as possible. |
43 | |
43 | |
44 | The $payload is a 32 bit unsigned integer given as the ICMP ECHO |
44 | The $payload is a 32 bit unsigned integer given as the ICMP ECHO |
45 | REQUEST ident and sequence numbers (in unspecified order :). |
45 | REQUEST ident and sequence numbers (in unspecified order :). |
46 | |
46 | |
47 | The request will be queued and all requests will be served by a |
47 | The request will be queued and all requests will be served by a |
… | |
… | |
93 | (regardless of whether a ping is still in process or not and |
93 | (regardless of whether a ping is still in process or not and |
94 | regardless of whether the reply is actually a reply to a ping sent |
94 | regardless of whether the reply is actually a reply to a ping sent |
95 | earlier). |
95 | earlier). |
96 | |
96 | |
97 | The code reference gets a single parameter - an arrayref with an |
97 | The code reference gets a single parameter - an arrayref with an |
98 | entry for each received packet (replies are beign batched for |
98 | entry for each received packet (replies are being batched for |
99 | greater efficiency). Each packet is represented by an arrayref with |
99 | greater efficiency). Each packet is represented by an arrayref with |
100 | three members: the source address (an octet string of either 4 |
100 | three members: the source address (an octet string of either 4 |
101 | (IPv4) or 16 (IPv6) octets length), the payload as passed to |
101 | (IPv4) or 16 (IPv6) octets length), the payload as passed to |
102 | "icmp_ping" and the round trip time in seconds. |
102 | "icmp_ping" and the round trip time in seconds. |
103 | |
103 | |
… | |
… | |
129 | AnyEvent::FastPing::unregister_cb \&cb |
129 | AnyEvent::FastPing::unregister_cb \&cb |
130 | Unregister the callback again (make sure you pass the same |
130 | Unregister the callback again (make sure you pass the same |
131 | codereference as to "register_cb"). |
131 | codereference as to "register_cb"). |
132 | |
132 | |
133 | AUTHOR |
133 | AUTHOR |
134 | Marc Lehmann <schmorp@schmorp.de> |
134 | Marc Lehmann <schmorp@schmorp.de> |
135 | http://home.schmorp.de/ |
135 | http://home.schmorp.de/ |
136 | |
136 | |
137 | AUTHOR |
137 | LICENSE |
138 | This software is distributed under the GENERAL PUBLIC LICENSE, version 2 |
138 | This software is distributed under the GENERAL PUBLIC LICENSE, version 2 |
139 | or any later version or, at your option, the Artistic License. |
139 | or any later version or, at your option, the Artistic License. |
140 | |
140 | |