user34537
user34537

Reputation:

boost asio and endian

I cant tell, does boost asio handle endian?

Upvotes: 9

Views: 3460

Answers (2)

Mold Boy
Mold Boy

Reputation: 663

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

Upvotes: 6

hvintus
hvintus

Reputation: 2617

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

Upvotes: 11

Related Questions