/[monit]/monit/net.h
ViewVC logotype

Diff of /monit/net.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.25 by martinp, Thu Jan 6 20:51:49 2005 UTC revision 1.26 by martinp, Fri Aug 5 11:21:18 2005 UTC
# Line 190  int sock_read(int socket, void *buffer, Line 190  int sock_read(int socket, void *buffer,
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

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26