Complete.Org: Mailing Lists: Archives: freeciv-dev: July 1999:
Re: [Freeciv-Dev] Endianess of packet data

Re: [Freeciv-Dev] Endianess of packet data

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: abies@xxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Endianess of packet data
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Thu, 15 Jul 1999 12:24:50 +1000 (EST)

Artur Biesiadowski wrote:

> It seems to me that big endian data is used, 

Network byte order is now used.  (Whatever that is ;-)

> but at the same time there
> is a test for other layout. Should I suppose that all modern
> servers/clients use bigendian in packets or should I detect this ?

For writing a client, you can assume the current byte order.
The current server partially handles the old byte order, so
that it can successfully tell older clients to go away.

-- David

[Prev in Thread] Current Thread [Next in Thread]