Complete.Org: Mailing Lists: Archives: freeciv-dev: March 1999:
Re: [Freeciv-Dev] 1.8.0 and network byte order
Home

Re: [Freeciv-Dev] 1.8.0 and network byte order

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Mitch Davis <mjd@xxxxxxxxxx>
Cc: Freeciv Developer Mailing List <freeciv-dev@xxxxxxxxxxx>
Subject: Re: [Freeciv-Dev] 1.8.0 and network byte order
From: Trent Piepho <xyzzy@xxxxxxxxxxxxxxxx>
Date: Tue, 2 Mar 1999 19:19:19 -0800 (PST)

On Wed, 3 Mar 1999, Mitch Davis wrote:
> The *right* way is to use the htonl/htons/ntohl/ntohs macros
> which appear in /usr/include/netinet/in.h on most machines.
> 
> Well, 1.8 is here!  Can we make those changes now?

And to this end, here is patch which does this.  I've tested it with a game on
an intel machine and a sparc, so it seems to work on both little endian and
big endian machines.  Maybe someone with a 64 bit machine should test it?

Attachment: network_byte_order.diff
Description: Text document


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