-
sockets
i understand the basic sock functions and how to use them, like socket(), bind(), listen(), connect(), accept(), send(), & recv(). i'm having some trouble figuring out how to use sockets though. i'm not really understanding what the structs sockaddr_in and sockaddr do. i know that they store the address and the port, but i don't really know what else and for what.
can anyone tell me what sockaddr_in and sockaddr are for, what they do, and what the difference between them is? thank you for your time.
-
As far as I know, storing that kind of data really is all they do. All the real work goes on behind the scenes at the operating system level. MSDN and Beej's could clarify more specifics for you.
sockaddr_in is just a version of sockaddr specialized for use on the internet.
Moved to the Networking Board.
-