connectTCP.c
上传用户:wei_4586
上传日期:2008-05-28
资源大小:18k
文件大小:1k
- /* connectTCP.c - connectTCP */
- int connectsock(const char *host, const char *service,
- const char *transport);
- /*------------------------------------------------------------------------
- * connectTCP - connect to a specified TCP service on a specified host
- *------------------------------------------------------------------------
- */
- int
- connectTCP(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, "tcp");
- }