libutil++  1.9.3
 All Classes Functions Variables
RawSocket.h
1 /*
2 ** libutil++
3 ** $Id: RawSocket.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__RawSocket_H__
10 #define __libutilxx__sella__net__RawSocket_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 RawSocket;
20  }
21 }
22 
23 class sella::net::RawSocket : public Socket {
24  public:
25  typedef std::shared_ptr<RawSocket> shared;
26  typedef RawSocket *ptr;
27 
28  public:
29  RawSocket(int family, int protocol) throw (SocketException);
30  RawSocket(const RawSocket &other) = delete;
31  virtual ~RawSocket();
32  void operator=(const RawSocket &other) = delete;
33 
34  static const RawSocket::shared shared_ptr(int family, int protocol) throw (SocketException);
35 
36  protected:
37  private:
38 };
39 
40 #endif
41 
42 /*
43 ** vim: noet ts=3 sw=3
44 */