Linux网络通信----htonl ()、htons ()、ntohl ()、ntohs ()四个函数
函数原型是:uint32_t htonl(uint32_t hostlong) 其中,hostlong是主机字节顺序表达的32位数,htonl中的h–host主机地址,to–to,n–net网络,l–unsigned long无符号的长 … Htons()函数 函数原型是:uint16_t htons(uint16_t hostlong) 其中,hostlong是主机字节顺序表达的16位数,htons中的h–host主机地址,to...