when you are doing [sockaddr.sin_family] -- what is AF_INET? i am read on www.msdn.com that you have to always have sin_family equal to it, but has that changed and what exactly is it and does it do?
It says you want to use the Internet Protocol (IP).
Look for sockaddr_in vs sockaddr_ipx - the address family is the common member of the sockaddr structures, telling you which particular substructure you have.