protoent

structure for information from the protocol database

Synopsis:

#include <netdb.h>

struct protoent {
     char *p_name;
     char **p_aliases;
     int  p_proto;
};

Description:

This structure holds information from the network protocols database, /etc/protocols. The members of this structure are:

p_name
The name of the protocol.
p_aliases
A zero-terminated list of alternate names for the protocol.
p_proto
The protocol number.

Classification:

POSIX 1003.1g (draft)

See also:

endprotoent(), getprotobyname(), getprotobynumber(), getprotoent(), setprotoent()

/etc/protocols in the TCP/IP User's Guide