% connectUDP.c -- connectUDP routine % Bert Bos % 17 Feb '94 Creating UDP sockets Based on the book `Internetworking with TCP/IP Volume III' by Douglas E. Comer \& David L. Stevens, Prentice-Hall, 1993. [[connectUDP()]] connects to a specified UDP service on a specified host. The arguments are: [[host]] = name of host or internet number to which connection is desired; [[service]] = service associated with the desired port or the port number. The return value is the socket descriptor or -1 in case of errror. <<*>>= #include #include "connectsock.e" EXPORT int connectUDP(char *host, char *service, Bool nonblock) { return connectsock(host, service, "udp", nonblock); }