29 |
* General purpose Network and Socket methods. |
* General purpose Network and Socket methods. |
30 |
* |
* |
31 |
* @author Jan-Henrik Haukeland, <hauk@tildeslash.com> |
* @author Jan-Henrik Haukeland, <hauk@tildeslash.com> |
32 |
* @author Christian Hopp <chopp@iei.tu-clausthal.de> |
* @author Christian Hopp, <chopp@iei.tu-clausthal.de> |
33 |
|
* @author Martin Pala, <martin.pala@iol.cz> |
34 |
* |
* |
35 |
* @version \$Id$ |
* @version \$Id$ |
36 |
* |
* |
200 |
*/ |
*/ |
201 |
int sock_read(int socket, void *buffer, int size, int timeout); |
int sock_read(int socket, void *buffer, int size, int timeout); |
202 |
|
|
203 |
|
/** |
204 |
|
* Create a ICMP socket against hostname, send echo and wait for response. |
205 |
|
* @param hostname The host to open a socket at |
206 |
|
* @param timeout If response will not come within timeout seconds abort |
207 |
|
* @return TRUE on succes, FALSE on error |
208 |
|
*/ |
209 |
|
int icmp_echo(const char *hostname, int timeout); |
210 |
|
|
211 |
#endif |
#endif |