#include <stdapis/netinet/in.h>
struct sockaddr_in |
Public Attributes | |
---|---|
struct in_addr | sin_addr |
u_short | sin_family |
u_short | sin_port |
char | sin_zero |
Socket address, internet style.
char | sin_zero |
There's also this sin_zero field which some people claim must be set to zero. Other people don't claim anything about it (the Linux documentation doesn't even mention it at all), and setting it to zero doesn't seem to be actually necessary. So, if you feel like it, set it to zero using memset().