在Linux中查询结构体变量sockaddr_in的成员变量解

linuxjourney 2008-06-17

如何在Linux中怎样查询结构体变量sockaddr_in的成员变量呢?

struct sockaddr_in {
182 sa_family_t sin_family; /* Address family */
183 __be16 sin_port; /* Port number */
184 struct in_addr sin_addr; /* Internet address */
185
186 /* Pad to size of `struct sockaddr'. */
187 unsigned char __pad[__SOCK_SIZE__ - sizeof(short int) -
188 sizeof(unsigned short int) - sizeof(struct in_addr)];
189};

相关推荐