Socket Headers
Socket Headers
This header file contains macro definitions related to the creation of sockets,with distinct integer
values:
The <sys/socket.h> header shall define the following macros, with distinct integer values:
For ex. It includes the following type definitions for unsigned integers and addresses:
For example , The following shall either be declared as functions, defined as macros, or both. If
functions are declared, function prototypes shall be provided.
uint32_t htonl(uint32_t);
uint16_t htons(uint16_t);
uint32_t ntohl(uint32_t);
uint16_t ntohs(uint16_t);
6. #include<sys/ioctl.h>
7. <errno.h>
This header file contains definitions for the macro identifiers that name system error status
conditions.
8.<netdb.h>
This header file contains structures returned by the network database library. Internet addresses
and port numbers are stored in network byte order,