數據類型 說明 來源
int8_t 帶符號8位整數 <sys/types.h>
uint8_t 無符號8位整數 <sys/types.h>
int16_t 帶符號16位整數 <sys/types.h>
uint16_t 無符號16位整數 <sys/types.h>
int32_t 帶符號32未整數 <sys/types.h>
uint32_t 無符號32位整數 <sys/types.h>
sa_family_t 套接字地址結構的協議簇 <sys/socket.h>
socklen_t 套接字地址結構的長度 <sys/socket.h>
in_addr_t IPV4地址 <netinet/in.h>
in_port_t TCP/UDP端口 <netinet/in.h>