9

I cant tell, does boost asio handle endian?

4

2 回答 2

11

Asio does convert things like port into network order. The conversion functions are not exposed as part of the official interface and are hidden in the detail namespace instead (e.g. boost::asio::detail::socket_ops::host_to_network_short).

于 2009-04-27T21:30:22.243 回答
6

boost::asio::socket_'s do not perform any byte order conversion.

于 2012-04-04T21:44:45.100 回答