00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __libutilxx__sella__net__UnixSocket_H__
00010 #define __libutilxx__sella__net__UnixSocket_H__
00011
00012 #include "../../common.h"
00013 #include "Socket.h"
00014
00015 #include <sys/socket.h>
00016
00017 namespace sella {
00018 namespace net {
00019 class UnixSocket;
00020 }
00021 }
00022
00023 class sella::net::UnixSocket : public Socket {
00024 public:
00025 typedef std::shared_ptr<UnixSocket> shared;
00026 typedef UnixSocket *ptr;
00027
00028 public:
00029 UnixSocket(int s) throw (SocketException);
00030 UnixSocket(const UnixSocket &sock) = delete;
00031 virtual ~UnixSocket();
00032 void operator=(const UnixSocket &sock) = delete;
00033
00034 static const UnixSocket::shared shared_ptr(int s) throw (SocketException);
00035 protected:
00036 private:
00037 };
00038
00039 #endif
00040
00041
00042
00043