connectUDP.c
Upload User: wei_4586
Upload Date: 2008-05-28
Package Size: 18k
Code Size: 1k
Category:

Linux Network

Development Platform:

Unix_Linux

  1. /* connectUDP.c - connectUDP */
  2. int connectsock(const char *host, const char *service,
  3. const char *transport);
  4. /*------------------------------------------------------------------------
  5.  * connectUDP - connect to a specified UDP service on a specified host
  6.  *------------------------------------------------------------------------
  7.  */
  8. int
  9. connectUDP(const char *host, const char *service )
  10. /*
  11.  * Arguments:
  12.  *      host    - name of host to which connection is desired
  13.  *      service - service associated with the desired port
  14.  */
  15. {
  16. return connectsock(host, service, "udp");
  17. }