The protoent structure defines the protocol-name mapping used with getprotobyname(), getprotobynumber(), and getprotoent():
struct protoent { char *p_name; /* official protocol name */ char **p_aliases /* alias list */ int p_proto; /* protocol number */ }; |
In the UNIX domain, no protocol database exists.