Kea  1.9.9-git
dhcp4to6_ipc.h
Go to the documentation of this file.
1 // Copyright (C) 2015-2019 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef DHCP4TO6_IPC_H
8 #define DHCP4TO6_IPC_H
9 
14 
15 #include <dhcp/pkt4o6.h>
16 #include <dhcpsrv/dhcp4o6_ipc.h>
17 #include <boost/shared_ptr.hpp>
18 
19 namespace isc {
20 namespace dhcp {
21 
23 class Dhcp4to6Ipc : public Dhcp4o6IpcBase {
24 protected:
28  Dhcp4to6Ipc();
29 
31  virtual ~Dhcp4to6Ipc() { }
32 
33 public:
39  static Dhcp4to6Ipc& instance();
40 
44  virtual void open();
45 
50  static void handler(int /* fd */);
51 };
52 
53 } // namespace isc
54 } // namespace dhcp
55 
56 #endif
Dhcp4to6Ipc()
Constructor.
Definition: dhcp4to6_ipc.cc:30
static void handler(int)
On receive handler.
Definition: dhcp4to6_ipc.cc:55
virtual void open()
Open communication socket.
Definition: dhcp4to6_ipc.cc:37
This class implements the communication between the DHCPv4 and DHCPv6 servers to allow for transmissi...
Definition: dhcp4o6_ipc.h:61
static Dhcp4to6Ipc & instance()
Returns pointer to the sole instance of Dhcp4to6Ipc.
Definition: dhcp4to6_ipc.cc:32
Defines the Dhcp4o6IpcBase class.
virtual ~Dhcp4to6Ipc()
Destructor.
Definition: dhcp4to6_ipc.h:31
Defines the logger used by the top-level component of kea-dhcp-ddns.
Handles DHCPv4-over-DHCPv6 IPC on the DHCPv4 server side.
Definition: dhcp4to6_ipc.h:23