Linux编程-sockaddr和sockaddr_in区别 sockaddr在头文件#include <sys/socket.h>中定义,sockaddr的缺陷是:sa_data把目标地址和端口信息混在一起了 12345678910111213141516/* POSIX.1g specifies this type name for the `sa_family' member. */typedef unsigned short Linux #网络编程