libutil++  1.9.3
 All Classes Functions Variables
UnixSocket.h
1 /*
2 ** libutil++
3 ** $Id: UnixSocket.h 1653 2016-02-28 19:54:59Z sella $
4 ** Copyright (c) 2011-2016 Digital Genesis, LLC. All Rights Reserved.
5 ** Released under the LGPL Version 2.1 License.
6 ** http://www.digitalgenesis.com
7 */
8 
9 #ifndef __libutilxx__sella__net__UnixSocket_H__
10 #define __libutilxx__sella__net__UnixSocket_H__
11 
12 #include "../../common.h"
13 #include "Socket.h"
14 
15 #include <sys/socket.h>
16 
17 namespace sella {
18  namespace net {
19  class UnixSocket;
20  }
21 }
22 
24  public:
25  typedef std::shared_ptr<UnixSocket> shared;
26  typedef UnixSocket *ptr;
27 
28  public:
29  UnixSocket(int s) throw (SocketException);
30  UnixSocket(const UnixSocket &sock) = delete;
31  virtual ~UnixSocket();
32  void operator=(const UnixSocket &sock) = delete;
33 
34  static const UnixSocket::shared shared_ptr(int s) throw (SocketException);
35  protected:
36  private:
37 };
38 
39 #endif
40 
41 /*
42 ** vim: noet ts=3 sw=3
43 */