protoent

Structure for information from the protocol database

Synopsis:

#include <netdb.h>

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

Description:

The protoent 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.1