[EROS-Arch] number key endianness

Jonathan S. Shapiro shap@cs.jhu.edu
Thu, 01 Mar 2001 18:27:56 -0500


"Karp, Alan" wrote:
> 
> The first message sent by the Initiator was 4 bytes that encoded its byte
> order, integer length, and character encoding.  (I only needed 8 bits, but I
> left room for growth.)  The first reply from the Listener was its 4 bytes.
> The rule was "Initiator makes right".

This makes sense for a connectionful protocol, but capability
invocations are frequently one shot, so a startup protocol adds too much
overhead. I think we will have to design that service specifies byte
order and client makes right. Note that we aren't going over networks
with this stuff -- it's only a consideration on machines that emulate
multiple architectures.

Jonathan