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 |
*/ |
*/ |