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.
精彩评论