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-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] 1.8.0 and network byte order
From: Trent Piepho <xyzzy@xxxxxxxxxxxxxxxx>
Date: Wed, 3 Mar 1999 16:52:42 -0800 (PST)

On Thu, 4 Mar 1999, Mitch Davis wrote:
> If the network byte order is wrong, then won't the major
> version of the protocol in the first packet be 0x01000000
> instead of 0x00000001?  This seems like an easy way to

Only problem is the join game packet will not be received properly, because
the length will be wrong.  Basicaly the server will think the packet is 256
times larger than it is.

One could check the size of the packet, if the PACKET_REQUEST_JOIN_GAME is
larger than about (17*256) bytes, there is a byte order conflict.

The problem is that the server or client will not process a packet until all
of the packet arrives.  Since they think the packet is so big, that will
never happen.


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