 |
» |
|
|
|
Header
file |  |
IPv4 Structure |  |
struct sockaddr_in { short sin_family; /*AF_INET */ u_short sin_port; /* transport layer port number */ struct in_addr sin_addr; /* IPv4 */ char sin_zero[8]; /* Unused */ };
|
IPv6 Structure |  |
sa_family_t sin6_family; /*AF_INET6 */ in_port_t sin6_port; /* transport layer port number.* / uint32_t sin6_flowinfo; /* traffic class */ struct in6_addr sin6_addr; /* IPv6*/ uint32_t sin6_scope_id; /* Address scope */
|
}:
|