]> git.llucax.com Git - software/posixx.git/blob - src/socket/inet/print.hpp
Update Makeit.mak
[software/posixx.git] / src / socket / inet / print.hpp
1 #ifndef POSIXX_SOCKET_INET_PRINT_HPP_
2 #define POSIXX_SOCKET_INET_PRINT_HPP_
3
4 #include "../inet.hpp" // posixx::socket::inet::sockaddr
5 #include <ostream> // std::ostream
6
7 inline
8 std::ostream& operator << (std::ostream& os,
9                 const posixx::socket::inet::sockaddr& sa) throw()
10 {
11         return os << "inet::sockaddr(addr=" << sa.addr()
12                         << ", port=" << sa.port() << ")";
13 }
14
15 #endif // POSIXX_SOCKET_INET_PRINT_HPP_