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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top