00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00025 #ifndef SOCKETSTREAM_LOCAL_ADRESS_H
00026 #define SOCKETSTREAM_LOCAL_ADDRESS_H 1
00027
00028 #include <socketstream/config.h>
00029
00030 #include <sys/socket.h>
00031 #include <sys/un.h>
00032
00033 namespace ss {
00034
00041 class local_address
00042 : public sockaddr_un
00043 {
00044 public:
00045
00046 typedef sockaddr_un sockaddr_t;
00047
00048 static const int AF = AF_LOCAL;
00049
00053 local_address ();
00054
00058 local_address (char const* __path);
00059
00063 local_address (local_address const& that);
00064
00068 local_address (sockaddr_un const& that);
00069
00075 local_address (sockaddr const& that);
00076
00080 local_address& operator= (local_address const& that);
00081
00085 local_address& operator= (sockaddr_un const& that);
00086
00092 local_address& operator= (sockaddr const& that);
00093
00094 };
00095
00096 }
00097
00098 #endif // SOCKETSTREAM_LOCAL_ADDRESS_H