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]
Nicolas Brunel wrote:
> I tried Trent Patch on my computer.
>
> 'old' server vs network order client
> -> Client can connect but game can't start
> > 0: lost connection to unknown is displayed when
> the client disconnect.
>
> Looking at the code, it 's like the player isn't really connected nor
> rejected from the game !
Yeah, I got the same thing, but didn't have time to
work out why.
> 'old' client vs network order server.
> It works fine !?? ( a few seconds game )
?? Both ways (mismatched byte orders) I got sort of a
connection (at least no clean disconnect) but of course
things don't actually work from then on.
> Can someone think of a trick to detect non network byte order packets ?
Part of the problem may be that the packet _length_
(for every packet) is encoded with a 16 bit int which
is affected by byte order, and I don't think the packet
handling code checks for weird lengths, so may get
very confused.
If we can detect the byte order of the other end of
the connection, it should be possible to put a flag in
the connection struct and then byte-swap all gets/puts
for that connection? At least so that a new server can
send appropriate failure notices to old clients.
-- David
- [Freeciv-Dev] 1.8.0 and network byte order, Mitch Davis, 1999/03/02
- Re: [Freeciv-Dev] 1.8.0 and network byte order, Trent Piepho, 1999/03/02
- Re: [Freeciv-Dev] 1.8.0 and network byte order, Mitch Davis, 1999/03/02
- Re: [Freeciv-Dev] 1.8.0 and network byte order, Nicolas Brunel, 1999/03/03
- Re: [Freeciv-Dev] 1.8.0 and network byte order,
David Pfitzner <=
- Re: [Freeciv-Dev] 1.8.0 and network byte order, Mitch Davis, 1999/03/03
- Re: [Freeciv-Dev] 1.8.0 and network byte order, Trent Piepho, 1999/03/03
- Re: [Freeciv-Dev] 1.8.0 and network byte order, David Pfitzner, 1999/03/04
- Re: [Freeciv-Dev] 1.8.0 and network byte order, David Pfitzner, 1999/03/04
- Re: [Freeciv-Dev] 1.8.0 and network byte order, Mitch Davis, 1999/03/04
|
|