Network Byte Ordering in vb.net

  • Thread starter Thread starter Paulers
  • Start date Start date
P

Paulers

Hello,

I am trying to learn more about how to send messages over TCP/IP using
network byte ordering. Does anyone have any links that could point me
in the right direction? My messages need to have an 8-byte header
proceeding the message. All help is greatly appreciated. Thanks :)
 
You can use System.Net.IPAddress.NetworkToHostOrder and HostToNetworkOrder
to convert 16, 32, or 64 bit integers from host order (little-endian) to
network order (big endian) or vice-versa.

- Andrew
 
Back
Top