|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sflsock.h"
sock_t
connect_UDP_fast (
const struct sockaddr_in *sin /* Socket address structure */
)
Creates a UDP socket and connects it to a specified host/port address. Returns a socket number or INVALID_SOCKET. In that case you can get the reason for the error by calling connect error (). This may be:
| IP NOSOCKETS | Sockets not supported on this system |
| IP BADHOST | Host is not known |
| IP BADPROTOCOL | Cannot understand protocol name |
| IP SOCKETERROR | Cannot open a socket |
| IP CONNECTERROR | Cannot connect socket |
{
ASSERT (sin);
return (connect socket (NULL, /* No host name */
NULL, /* No service name */
"udp", /* Protocol is UDP */
sin, /* We have a prepared address */
1, 0)); /* 1 retry, no waiting */
}
| | << | < | > | >> |
|