Code for TCP/IP program to create a passive socket for use in a TCP server in Networking
int passivesock(constchar *service, constchar *transport,
int qlen);
int
passiveTCP(constchar *service, int qlen)
/* * Arguments: * service - service associated with the desired port * qlen - maximum server request queue length */
{
return passivesock(service, "tcp", qlen);
}