[Mono-devel-list] Network vs Host order in storage of IPAddress
bmaurer at ximian.com
Tue Sep 28 23:44:13 EDT 2004
Miguel and I noticed tonight that IPAddress is odd in that it stores its
data internally in host order. The problem with this is that if you
serialize an IPAddress and open it on a computer with a different host
ordering, the address will come out differently.
<miguel> We probably should consider the data coming in from that API to
be in Little Endian Format
<miguel> And translate that into the right one
<miguel> So _numbers should be stored in network order
<miguel> So we should do the changes there
We were wondering if anyone had comments about this.
More information about the Mono-devel-list