Opens, rewinds, or closes the protocols database file.
#include <netdb.h> void setprotoent (int stay_open);
Passing a nonzero value to the stay_open parameter keeps the connection open until you call the endprotoent, or exit routine.
See also endprotoent, exit, and getprotoent in this section.
1 | Indicates success. |
0 | Indicates an error; unable to open the protocols database file. |
If the setprotoent routine fails, the error is further specified in the global errno. |