justin

justin

  • NA
  • 1
  • 0

Byte Order

Jan 27 2006 1:28 PM
I'm writing a tcp/ip app and here's a quick q. Should I use BitConverter and IPAddress.HostToNetworkOrder with IPAddress.NetworkToHostOrder Or does sending the stuff as... BinaryWriter writer = new BinaryWriter(stream, System.Text.Encoding.UTF8); and reading as BinaryReader reader = new BinaryReader(stream, System.Text.Encoding.UTF8); ensure the byte order for me? MSDN isn're real clear on this matter