Can someone please explain the sockaddr format. To be specific why is sa_data 14 bytes long ? The IP address is only 4 bytes long and the port is 2 bytes giving 6 bytes, what are the other 8 bytes used for ?
Thanks
Kas
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
The CC3000 socket interface is based off BSD sockets. This link refers to POSIX sockets, but probably also applies to BSD. Most likely it was included so there was redundancy for future revisions, to reduce the likelihood of major changes to the API.
http://lists.kernelnewbies.org/pipermail/kernelnewbies/2011-February/000966.html
In theory, TI could have removed this to save some memory at the cost of not being BSD compliant, but I'm sure they had their reasons.