protoent

Defines an internet protocol.

Service:Networking

Structure

  #include <netdb.h>
  
  struct protoent {
     char    *p_name;   
     char   **p_aliases; 
     short    p_proto; 
  };
  

Fields

p_name

Points to the official name of the protocol.

p_aliases

Points to the first element in a list of pointers to alternate names (aliases) for the protocol (null terminates the list).

p_proto

Specifies the protocol number.