host to network double?

前端 未结 3 750
粉色の甜心
粉色の甜心 2021-01-13 10:33

I\'d like to send some double precision floating point numbers over the network. (standard C, standard sockets) There is no htond or ntohd to convert the data to and from ne

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-13 10:54

    You might want to look at XDR which was first defined in rfc1014. Obviously, you want to find a library which implements XDR for your platform.

提交回复
热议问题