]> git.tdb.fi Git - libs/net.git/blob - source/net/unix.h
Minor cleanup
[libs/net.git] / source / net / unix.h
1 #ifndef MSP_NET_UNIX_H_
2 #define MSP_NET_UNIX_H_
3
4 #include "sockaddr.h"
5
6 namespace Msp {
7 namespace Net {
8
9 class UnixAddr: public SockAddr
10 {
11 private:
12         std::string path;
13         bool abstract;
14
15 public:
16         UnixAddr();
17         UnixAddr(const SysAddr &);
18         UnixAddr(const std::string &, bool = false);
19
20         virtual UnixAddr *copy() const { return new UnixAddr(*this); }
21
22         virtual SysAddr to_sys() const;
23
24         virtual Family get_family() const { return UNIX; }
25         virtual std::string str() const;
26 };
27
28 } // namespace Net
29 } // namespace Msp
30
31 #endif