What is sin_zero for?
Jim Reid
jim at cs.strath.ac.uk
Thu Oct 18 02:45:26 AEST 1990
In article <MJD.90Oct16130739 at saul.cis.upenn.edu> mjd at saul.cis.upenn.edu (Mark-Jason Dominus) writes:
The defininition of struct sockaddr_in in the <netinet/in.h>
files on our suns has four members, one of which is
char sin_zero[8];
What is it for?
Nothing. It's purely to pad out the sockaddr_in struct to 16 bytes,
the size of the generic sockaddr structure in <sys/socket.h>.
Jim
More information about the Comp.unix.questions
mailing list