0
Reply

Byte Order

justin

justin

Jan 27 2006 1:28 PM
1.8k
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