开发者

how to reverse fill each entity of byte array?

i want to prepare a byte buffer as a upd p开发者_Python百科acket i want to fill each value in reverse order how can i do so in ansi c

i have to do this on windows system,


Assuming you are doing this so it will work on any receiving system: Use htonl() on each byte in your buffer when sending and ntohl() on each received byte.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜