connectUDP.c
上传用户:wei_4586
上传日期:2008-05-28
资源大小:18k
文件大小:1k
- /* connectUDP.c - connectUDP */
- int connectsock(const char *host, const char *service,
- const char *transport);
- /*------------------------------------------------------------------------
- * connectUDP - connect to a specified UDP service on a specified host
- *------------------------------------------------------------------------
- */
- int
- connectUDP(const char *host, const char *service )
- /*
- * Arguments:
- * host - name of host to which connection is desired
- * service - service associated with the desired port
- */
- {
- return connectsock(host, service, "udp");
- }