开发者

In a RPC, how does a receiver identify the senders architecture?

I am trying to wrap my head around how the sender identifies the endianness of the sender. I know the initial byte is usually the architecture/type o开发者_如何学Gof the sender. For example 0x00 is i386 etc. However, how does the first byte help at all if the receiver has no idea how to interpret it?


Endianness refers to the ordering of bytes into larger numbers, not the order of bits inside a byte. A single byte is always endian-safe; networks transfer byte streams transparently (that is, bytes are received in the same order in which they were sent).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜