Code for TCP/IP program to connect to a specified UDP service on a specified host in Networking
int connectsock(constchar *host, constchar *service,
constchar *transport);
int
connectUDP(constchar *host, constchar *service )
/* * Arguments: * host - name of host to which connection is desired * service - service associated with the desired port */
{
return connectsock(host, service, "udp");
}