]> git.llucax.com Git - software/posixx.git/blob - src/socket/unix/print.hpp
Use Boost Unit Test Framework MT library
[software/posixx.git] / src / socket / unix / print.hpp
1 #ifndef POSIXX_SOCKET_UNIX_PRINT_HPP_
2 #define POSIXX_SOCKET_UNIX_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::unix::sockaddr& sa) throw()
10 {
11         return os << "unix::sockaddr(path=" << sa.sun_path << ")";
12 }
13
14 #endif // POSIXX_SOCKET_UNIX_PRINT_HPP_