阅读背景:

将缓冲区解释为结构的正确,可移植的方法

来源:互联网 

The context of my problem is in network programming. Say I want to send messages over the network between two programs. For simplicity, let's say messages look like this, and byte-order is not a concern. I want to find a correct, portable, and efficient way to define these messages as C structures. I know of four approaches to this: explicit casting, casting through a union, copying, and marshaling.The context of my problem is in network program




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: