<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<small>Hi all,<br>
<br>
Could anyone please explain the use <font color="#990000"><b>sin_zero
in </b></font>sockaddr_in? <br>
<br>
struct sockaddr_in{<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; short&nbsp;&nbsp;&nbsp; sin_family;&nbsp;&nbsp;&nbsp; /* AF_INET */<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; u_short&nbsp;&nbsp;&nbsp; sin_port;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /* 16-bit port number */<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /* network byte ordered */<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; struct in_addr sin_addr;&nbsp;&nbsp;&nbsp; /* 32-bit netid/hostid */<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /* network byte ordered */<br>
<font color="#990000"><b>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; char&nbsp;&nbsp;&nbsp; sin_zero[8];&nbsp;&nbsp;&nbsp; /* unused */</b></font><br>
}<br>
<br>
Thanks,<br>
Prabhu</small><br>
<br>
<br>
<br>
</body>
</html>