The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-01-2008
trapeze trapeze is offline
Registered User
 

Join Date: Dec 2007
Posts: 8
Question What does 'AF' of AF_INET stand for ?

as title. and how is it different from PF_INET ?

also, any one knows sin_family , sin_port , sin_addr ..etc ? why are they called 'sin' ?

finally, htons() host to network short , htonl() host to network long , ntohs() network to host short , ntohl() network to host long. why would programmers care about 'short' or 'long' here ? why not just use either one of them ?
Reply With Quote
Forum Sponsor