vksingh
June 1st, 2010, 02:12 PM
struct sockaddr_in {
short sin_family; // e.g. AF_INET, AF_INET6
unsigned short sin_port; // e.g. htons(3490)
struct in_addr sin_addr; // see struct in_addr, below
char sin_zero[8]; // zero this if you want to
};
In the above code, sin has been used. What is the meaning of this word "sin" with respect to
above code?
Thanks,
Vivek
short sin_family; // e.g. AF_INET, AF_INET6
unsigned short sin_port; // e.g. htons(3490)
struct in_addr sin_addr; // see struct in_addr, below
char sin_zero[8]; // zero this if you want to
};
In the above code, sin has been used. What is the meaning of this word "sin" with respect to
above code?
Thanks,
Vivek