getprotoent

Gets a protocol database entry from the protocols database file.

Format

#include  <netdb.h>

struct protoent *getprotoent  (void);

Description

The getprotoent routine reads the next entry of the database, opening a connection to the database, if necessary.

See the <netdb.h> header file for a description of the protoent structure.

See also getprotobyname, getprotobynumber, setprotoent, and endprotoent in this section.

Return Values
A pointer to a protoent structure. 
NULL  Indicates an error or EOF. 


Previous Page | Next Page | Table of Contents | Index