DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Developing applications over TCP/IP using Internet sockets

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.

Next topic: Mapping service names (Internet domain)
Previous topic: Mapping network names (Internet domain)

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003