Kea  2.3.5-git
asiodns_messages.cc
Go to the documentation of this file.
1 // File created from ../../../src/lib/asiodns/asiodns_messages.mes
2 
3 #include <cstddef>
4 #include <log/message_types.h>
6 
7 namespace isc {
8 namespace asiodns {
9 
10 extern const isc::log::MessageID ASIODNS_FD_ADD_TCP = "ASIODNS_FD_ADD_TCP";
11 extern const isc::log::MessageID ASIODNS_FD_ADD_UDP = "ASIODNS_FD_ADD_UDP";
12 extern const isc::log::MessageID ASIODNS_FETCH_COMPLETED = "ASIODNS_FETCH_COMPLETED";
13 extern const isc::log::MessageID ASIODNS_FETCH_STOPPED = "ASIODNS_FETCH_STOPPED";
14 extern const isc::log::MessageID ASIODNS_OPEN_SOCKET = "ASIODNS_OPEN_SOCKET";
15 extern const isc::log::MessageID ASIODNS_READ_DATA = "ASIODNS_READ_DATA";
16 extern const isc::log::MessageID ASIODNS_READ_TIMEOUT = "ASIODNS_READ_TIMEOUT";
17 extern const isc::log::MessageID ASIODNS_SEND_DATA = "ASIODNS_SEND_DATA";
18 extern const isc::log::MessageID ASIODNS_SYNC_UDP_CLOSE_FAIL = "ASIODNS_SYNC_UDP_CLOSE_FAIL";
19 extern const isc::log::MessageID ASIODNS_TCP_ACCEPT_FAIL = "ASIODNS_TCP_ACCEPT_FAIL";
20 extern const isc::log::MessageID ASIODNS_TCP_CLEANUP_CLOSE_FAIL = "ASIODNS_TCP_CLEANUP_CLOSE_FAIL";
21 extern const isc::log::MessageID ASIODNS_TCP_CLOSE_ACCEPTOR_FAIL = "ASIODNS_TCP_CLOSE_ACCEPTOR_FAIL";
22 extern const isc::log::MessageID ASIODNS_TCP_CLOSE_FAIL = "ASIODNS_TCP_CLOSE_FAIL";
23 extern const isc::log::MessageID ASIODNS_TCP_CLOSE_NORESP_FAIL = "ASIODNS_TCP_CLOSE_NORESP_FAIL";
24 extern const isc::log::MessageID ASIODNS_TCP_GETREMOTE_FAIL = "ASIODNS_TCP_GETREMOTE_FAIL";
25 extern const isc::log::MessageID ASIODNS_TCP_READDATA_FAIL = "ASIODNS_TCP_READDATA_FAIL";
26 extern const isc::log::MessageID ASIODNS_TCP_READLEN_FAIL = "ASIODNS_TCP_READLEN_FAIL";
27 extern const isc::log::MessageID ASIODNS_TCP_WRITE_FAIL = "ASIODNS_TCP_WRITE_FAIL";
28 extern const isc::log::MessageID ASIODNS_UDP_ASYNC_SEND_FAIL = "ASIODNS_UDP_ASYNC_SEND_FAIL";
29 extern const isc::log::MessageID ASIODNS_UDP_CLOSE_FAIL = "ASIODNS_UDP_CLOSE_FAIL";
30 extern const isc::log::MessageID ASIODNS_UDP_RECEIVE_FAIL = "ASIODNS_UDP_RECEIVE_FAIL";
31 extern const isc::log::MessageID ASIODNS_UDP_SYNC_RECEIVE_FAIL = "ASIODNS_UDP_SYNC_RECEIVE_FAIL";
32 extern const isc::log::MessageID ASIODNS_UDP_SYNC_SEND_FAIL = "ASIODNS_UDP_SYNC_SEND_FAIL";
33 extern const isc::log::MessageID ASIODNS_UNKNOWN_ORIGIN = "ASIODNS_UNKNOWN_ORIGIN";
34 extern const isc::log::MessageID ASIODNS_UNKNOWN_RESULT = "ASIODNS_UNKNOWN_RESULT";
35 
36 } // namespace asiodns
37 } // namespace isc
38 
39 namespace {
40 
41 const char* values[] = {
42  "ASIODNS_FD_ADD_TCP", "adding a new TCP server by opened fd %1",
43  "ASIODNS_FD_ADD_UDP", "adding a new UDP server by opened fd %1",
44  "ASIODNS_FETCH_COMPLETED", "upstream fetch to %1(%2) has now completed",
45  "ASIODNS_FETCH_STOPPED", "upstream fetch to %1(%2) has been stopped",
46  "ASIODNS_OPEN_SOCKET", "error %1 opening %2 socket to %3(%4)",
47  "ASIODNS_READ_DATA", "error %1 reading %2 data from %3(%4)",
48  "ASIODNS_READ_TIMEOUT", "receive timeout while waiting for data from %1(%2)",
49  "ASIODNS_SEND_DATA", "error %1 sending data using %2 to %3(%4)",
50  "ASIODNS_SYNC_UDP_CLOSE_FAIL", "failed to close a DNS/UDP socket: %1",
51  "ASIODNS_TCP_ACCEPT_FAIL", "failed to accept TCP DNS connection: %1",
52  "ASIODNS_TCP_CLEANUP_CLOSE_FAIL", "failed to close a DNS/TCP socket on port cleanup: %1",
53  "ASIODNS_TCP_CLOSE_ACCEPTOR_FAIL", "failed to close listening TCP socket: %1",
54  "ASIODNS_TCP_CLOSE_FAIL", "failed to close DNS/TCP socket with a client: %1",
55  "ASIODNS_TCP_CLOSE_NORESP_FAIL", "failed to close DNS/TCP socket with a client: %1",
56  "ASIODNS_TCP_GETREMOTE_FAIL", "failed to get remote address of a DNS TCP connection: %1",
57  "ASIODNS_TCP_READDATA_FAIL", "failed to get DNS data on a TCP socket: %1",
58  "ASIODNS_TCP_READLEN_FAIL", "failed to get DNS data length on a TCP socket: %1",
59  "ASIODNS_TCP_WRITE_FAIL", "failed to send DNS message over a TCP socket: %1",
60  "ASIODNS_UDP_ASYNC_SEND_FAIL", "Error sending UDP packet to %1: %2",
61  "ASIODNS_UDP_CLOSE_FAIL", "failed to close a DNS/UDP socket: %1",
62  "ASIODNS_UDP_RECEIVE_FAIL", "failed to receive UDP DNS packet: %1",
63  "ASIODNS_UDP_SYNC_RECEIVE_FAIL", "failed to receive UDP DNS packet: %1",
64  "ASIODNS_UDP_SYNC_SEND_FAIL", "Error sending UDP packet to %1: %2",
65  "ASIODNS_UNKNOWN_ORIGIN", "unknown origin for ASIO error code %1 (protocol: %2, address %3)",
66  "ASIODNS_UNKNOWN_RESULT", "unknown result (%1) when IOFetch::stop() was executed for I/O to %2(%3)",
67  NULL
68 };
69 
70 const isc::log::MessageInitializer initializer(values);
71 
72 } // Anonymous namespace
73 
const isc::log::MessageID ASIODNS_SEND_DATA
const isc::log::MessageID ASIODNS_SYNC_UDP_CLOSE_FAIL
const isc::log::MessageID ASIODNS_TCP_READLEN_FAIL
const isc::log::MessageID ASIODNS_UNKNOWN_ORIGIN
const isc::log::MessageID ASIODNS_FETCH_STOPPED
const isc::log::MessageID ASIODNS_TCP_CLOSE_FAIL
const isc::log::MessageID ASIODNS_UDP_SYNC_RECEIVE_FAIL
Initialize Message Dictionary.
const isc::log::MessageID ASIODNS_TCP_ACCEPT_FAIL
const isc::log::MessageID ASIODNS_FETCH_COMPLETED
const isc::log::MessageID ASIODNS_TCP_CLOSE_NORESP_FAIL
const isc::log::MessageID ASIODNS_TCP_GETREMOTE_FAIL
const isc::log::MessageID ASIODNS_TCP_CLEANUP_CLOSE_FAIL
const isc::log::MessageID ASIODNS_TCP_READDATA_FAIL
const isc::log::MessageID ASIODNS_FD_ADD_UDP
const isc::log::MessageID ASIODNS_UDP_CLOSE_FAIL
Defines the logger used by the top-level component of kea-lfc.
const isc::log::MessageID ASIODNS_READ_TIMEOUT
const isc::log::MessageID ASIODNS_TCP_CLOSE_ACCEPTOR_FAIL
const isc::log::MessageID ASIODNS_TCP_WRITE_FAIL
const isc::log::MessageID ASIODNS_UDP_SYNC_SEND_FAIL
const isc::log::MessageID ASIODNS_UNKNOWN_RESULT
const isc::log::MessageID ASIODNS_UDP_RECEIVE_FAIL
const isc::log::MessageID ASIODNS_FD_ADD_TCP
const isc::log::MessageID ASIODNS_READ_DATA
const char * MessageID
Definition: message_types.h:15
const isc::log::MessageID ASIODNS_UDP_ASYNC_SEND_FAIL
const isc::log::MessageID ASIODNS_OPEN_SOCKET