[Mono-devel-list] Network vs Host order in storage of IPAddress

Ben Maurer bmaurer at ximian.com
Tue Sep 28 23:44:13 EDT 2004

Hey guys,

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 proposed:
<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.

-- Ben

More information about the Mono-devel-list mailing list