190 |
|
|
191 |
/** |
/** |
192 |
* Create a ICMP socket against hostname, send echo and wait for response. |
* Create a ICMP socket against hostname, send echo and wait for response. |
193 |
|
* The 'count' echo requests is send and we expect at least one reply. |
194 |
* @param hostname The host to open a socket at |
* @param hostname The host to open a socket at |
195 |
* @param timeout If response will not come within timeout seconds abort |
* @param timeout If response will not come within timeout seconds abort |
196 |
|
* @param count How many pings to send |
197 |
* @return response time on succes, -1 on error |
* @return response time on succes, -1 on error |
198 |
*/ |
*/ |
199 |
double icmp_echo(const char *hostname, int timeout); |
double icmp_echo(const char *hostname, int timeout, int count); |
200 |
|
|
201 |
#endif |
#endif |