点式IP转换成网络字节序函数inet_addr(); 将端口(整数)转换成网络字节序 htons(); 将网络地址转换成成“.”点隔的字符串格式。 inet_ntoa(); 将网络字节序转换成整数(本地端口)ntohs();