]> git.llucax.com Git - software/posixx.git/blobdiff - src/socket/inet/print.hpp
Move type_t and scope_t out from tipc::sockaddr
[software/posixx.git] / src / socket / inet / print.hpp
index 7c61e26f8aa84137552c06af38102cbe881d3bc3..168729a9f78797c093ac9359ccb6eea266a33941 100644 (file)
@@ -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_