[Hackfest] Protocol
Christopher Yeoh
cyeoh at samba.org
Tue Mar 8 14:23:26 EST 2005
At 2005/3/8 10:29+0800 Russell Steicke writes:
>
> const int Message::headerValue = 0xDEADBEEF;
> const int Message::footerValue = 0xABCDFEDA;
>
> as well as the message command and data size appear in the protocol in
> host order, ie little endian on my, indeed most, machines. However,
> stuff inside the message is converted to network order, at least in
> the messages I've looked at so far. eg the player id and player name
> length in MSG_SEND_NEWPLAYER_INFO messages.
>
> Is this deliberate? Is it likely to change? The web page says that
> it could change, and I was wondering just how likely that is.
Accident - everything should be in network byte order. I've been
testing on my laptop so hadn't noticed. But its likely that the server
at LCA will be PPC based so endian problems will have to be fixed up
by then.
There should be an updated version of the server released in a few
days.
Chris
--
cyeoh at samba.org
More information about the Hackfest
mailing list