COHERENT manpages

This page displays the COHERENT manpage for setprotoent() [Open the protocols file].

List of available manpages
Index


setprotoent() -- Sockets Function (libsocket)

Open the protocols file

#include <netdb.h> int setprotoent(stayopen) int stayopen;

Function  setprotoent()   opens  or  rewinds   file  /etc/protocols,  which
describes all protocols recognized on your local network.  If flag stayopen
is set to a non-zero value, /etc/protocols is not closed after each call to
getprotobyaddr() or getprotobyname().

See Also

getprotobyaddr(),
getprotobyname(),
getprotoent(),
endprotoent(),
libsocket,
netdb.h