X-Git-Url: https://git.llucax.com/software/posixx.git/blobdiff_plain/3e0a7ecf57252241e9d5a87720ed6359818f8d28..d22d22101e7dda5da951a76408ec32708072849e:/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_