X-Git-Url: https://git.llucax.com/software/posixx.git/blobdiff_plain/3e0a7ecf57252241e9d5a87720ed6359818f8d28..67c511b36d56c5042cef47d84a5f91e24f3fcbe5:/src/socket/inet/print.hpp?ds=sidebyside diff --git a/src/socket/inet/print.hpp b/src/socket/inet/print.hpp index 7c61e26..168729a 100644 --- a/src/socket/inet/print.hpp +++ b/src/socket/inet/print.hpp @@ -8,8 +8,8 @@ inline std::ostream& operator << (std::ostream& os, const posixx::socket::inet::sockaddr& sa) throw() { - return os << "inet::sockaddr(port=" << ntohs(sa.sin_port) - << ", addr=" << inet_ntoa(sa.sin_addr) << ")"; + return os << "inet::sockaddr(addr=" << sa.addr() + << ", port=" << sa.port() << ")"; } #endif // POSIXX_SOCKET_INET_PRINT_HPP_