boost asio and endian

两盒软妹~` 提交于 2019-12-12 08:36:46

问题


I cant tell, does boost asio handle endian?


回答1:


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).




回答2:


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



来源:https://stackoverflow.com/questions/524453/boost-asio-and-endian

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!