The setservent() call opens and rewinds the ETC\SERVICES file.
Syntax
#include <netdb.h> void setservent(stayopen) int stayopen;
Parameters
stayopen
Description
This call opens and rewinds the ETC\SERVICES file, which contains information about known services and well-known ports. If the stayopen parameter is nonzero, the ETC\SERVICES file stays open after each of the getserv calls.
Related Calls
endprotoent() endservent()
getprotobyname()
getprotobynumber()
getprotoent()
getservbyname()
getservbyport()
getservent()
setprotoent()