Chapter 7, Developing applications over TCP/IP using Internet sockets
Mapping protocol names (Internet domain)

Mapping protocol names (Internet domain)

For protocols, the protoent structure defines the protocol name mapping used with the routines getnetent(SLIB) and getprotoent(SLIB): 

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

*p_name
is the official protocol name.

**p_aliases
is the alias list

p_proto
is the protocol number.