X-Git-Url: https://git.llucax.com/software/posixx.git/blobdiff_plain/25e37c946dfa92e9a3676a022177afef06588a01..bbfe1163f7ddc007b7497bb823f794ff7d2018e2:/src/socket/inet/print.hpp 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_