passiveTCP.c
上传用户:wei_4586
上传日期:2008-05-28
资源大小:18k
文件大小:1k
- /* passiveTCP.c - passiveTCP */
- int passivesock(const char *service, const char *transport,
- int qlen);
- /*------------------------------------------------------------------------
- * passiveTCP - create a passive socket for use in a TCP server
- *------------------------------------------------------------------------
- */
- int
- passiveTCP(const char *service, int qlen)
- /*
- * Arguments:
- * service - service associated with the desired port
- * qlen - maximum server request queue length
- */
- {
- return passivesock(service, "tcp", qlen);
- }