Re: DIME on various platform.
Luis Park <[email protected]> Mon, 16 Sep 2002 06:26:11 -0700
| Newsgroups | gmane.comp.windows.devel.dime |
|---|---|
| Message-ID | <DIME%[email protected]> |
On Sat, 14 Sep 2002 04:14:31 -0700, Dror Harari <[email protected]> wrote: >Luis, > >The endianity is made a non-issue by adopting the commonly agreed-on >network format of big-endian. All the integers embedded in DIME messages >are taken to be big-endian. It is the responsibilityh of the DIME >implementation on a given platform to construct or deconstruct messages >accordingly. > >See the DIME spec, section 3.1, "Data Transmission Order" > >/d Thanks for your quick answer. But i still wonder I(or somebody who will write DIME parser) have to program differently according to each platform. Why not Internet network standard byte order using ntohl or htonl? Do they think it costs much to use that? Luis