title: what does ntohs() in pcap exactly do?
body: <p>I read the documentation from one of the answers:</p>
  
  <p>The ntohs function takes a 16-bit number in TCP/IP network byte order (the AF_INET or AF_INET6 address family) and returns a 16-bit number in host byte order.</p>
  
  <p>Please explain with an example, as in what is network byte order and what is the host byte order.</p>