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

Diff of /monit/net.h

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

revision 1.27 by hauk, Sat Oct 29 15:36:59 2005 UTC revision 1.28 by hauk, Mon Oct 31 16:55:25 2005 UTC
# Line 62  int check_socket(int socket); Line 62  int check_socket(int socket);
62    
63    
64  /**  /**
65   * Verify that the udp socket is ready for i|o. The given socket must   * Verify that the udp server is up. The given socket must be a
66   * be a connected udp socket if we should be able to test the udp   * connected udp socket if we should be able to test the udp server.
67   * server. The test is conducted by sending one byte to the server and   * The test is conducted by sending a datagram to the server and
68   * check for a returned ICMP error when reading from the socket. A   * check for a returned ICMP error when reading from the socket.
  * better test would be to send an empty SYN udp package to avoid  
  * possibly raising an error from the server we are testing but  
  * assembling an udp by hand requires SOCKET_RAW and running the  
  * program as root.  
69   * @param socket A socket   * @param socket A socket
70   * @return TRUE if the socket is ready, otherwise FALSE.   * @return TRUE if the socket is ready, otherwise FALSE.
71   */   */

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

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