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

Diff of /monit/net.c

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

revision 1.15 by chopp, Wed Oct 23 14:01:26 2002 UTC revision 1.16 by hauk, Sat Dec 21 11:25:54 2002 UTC
# Line 195  int check_socket(int socket) { Line 195  int check_socket(int socket) {
195    
196  /**  /**
197   * Verify that the udp socket is ready for i|o. The given socket must   * Verify that the udp socket is ready for i|o. The given socket must
198   * be a connected udp socket.   * be a connected udp socket. The test is conducted by sending one
199     * byte to the server and check for any returned ICMP error when
200     * reading from the socket. A better test would be to send an empty
201     * udp package to avoid possibly raising an error from the server we
202     * are testing.
203   * @param socket A socket   * @param socket A socket
204   * @return TRUE if the socket is ready, otherwise FALSE.   * @return TRUE if the socket is ready, otherwise FALSE.
205   */   */

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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