Kea: tcp_messages.cc Source File

| Kea 3.2.0-git

tcp_messages.cc
Go to the documentation of this file.
1// File created from src/lib/tcp/tcp_messages.mes
2
3#include <cstddef>
4#include <log/message_types.h>
5#include <log/message_initializer.h>
6
7namespace isc {
8namespace tcp {
9
10extern const isc::log::MessageID MT_TCP_LISTENER_MGR_STARTED = "MT_TCP_LISTENER_MGR_STARTED";
11extern const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPED = "MT_TCP_LISTENER_MGR_STOPPED";
12extern const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPING = "MT_TCP_LISTENER_MGR_STOPPING";
13extern const isc::log::MessageID TCP_CLIENT_BAD_SERVER_RESPONSE_RECEIVED = "TCP_CLIENT_BAD_SERVER_RESPONSE_RECEIVED";
14extern const isc::log::MessageID TCP_CLIENT_BAD_SERVER_RESPONSE_RECEIVED_DETAILS = "TCP_CLIENT_BAD_SERVER_RESPONSE_RECEIVED_DETAILS";
15extern const isc::log::MessageID TCP_CLIENT_CONNECTION_CLOSE_CALLBACK_FAILED = "TCP_CLIENT_CONNECTION_CLOSE_CALLBACK_FAILED";
16extern const isc::log::MessageID TCP_CLIENT_MT_STARTED = "TCP_CLIENT_MT_STARTED";
17extern const isc::log::MessageID TCP_CLIENT_PREMATURE_CONNECTION_TIMEOUT_OCCURRED = "TCP_CLIENT_PREMATURE_CONNECTION_TIMEOUT_OCCURRED";
18extern const isc::log::MessageID TCP_CLIENT_QUEUE_SIZE_GROWING = "TCP_CLIENT_QUEUE_SIZE_GROWING";
19extern const isc::log::MessageID TCP_CLIENT_REQUEST_SEND = "TCP_CLIENT_REQUEST_SEND";
20extern const isc::log::MessageID TCP_CLIENT_SERVER_RESPONSE_RECEIVED = "TCP_CLIENT_SERVER_RESPONSE_RECEIVED";
21extern const isc::log::MessageID TCP_CONNECTION_REJECTED_BY_FILTER = "TCP_CONNECTION_REJECTED_BY_FILTER";
22extern const isc::log::MessageID TCP_CONNECTION_SHUTDOWN = "TCP_CONNECTION_SHUTDOWN";
23extern const isc::log::MessageID TCP_CONNECTION_SHUTDOWN_FAILED = "TCP_CONNECTION_SHUTDOWN_FAILED";
24extern const isc::log::MessageID TCP_CONNECTION_STOP = "TCP_CONNECTION_STOP";
25extern const isc::log::MessageID TCP_CONNECTION_STOP_FAILED = "TCP_CONNECTION_STOP_FAILED";
26extern const isc::log::MessageID TCP_DATA_RECEIVED = "TCP_DATA_RECEIVED";
27extern const isc::log::MessageID TCP_DATA_SENT = "TCP_DATA_SENT";
28extern const isc::log::MessageID TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED = "TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED";
29extern const isc::log::MessageID TCP_REQUEST_RECEIVED_FAILED = "TCP_REQUEST_RECEIVED_FAILED";
30extern const isc::log::MessageID TCP_REQUEST_RECEIVE_START = "TCP_REQUEST_RECEIVE_START";
31extern const isc::log::MessageID TCP_SERVER_CLIENT_REQUEST_RECEIVED = "TCP_SERVER_CLIENT_REQUEST_RECEIVED";
32extern const isc::log::MessageID TCP_SERVER_RESPONSE_SEND = "TCP_SERVER_RESPONSE_SEND";
33extern const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_FAILED = "TLS_CONNECTION_HANDSHAKE_FAILED";
34extern const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_START = "TLS_CONNECTION_HANDSHAKE_START";
35extern const isc::log::MessageID TLS_REQUEST_RECEIVE_START = "TLS_REQUEST_RECEIVE_START";
36extern const isc::log::MessageID TLS_SERVER_RESPONSE_SEND = "TLS_SERVER_RESPONSE_SEND";
37
38} // namespace tcp
39} // namespace isc
40
41namespace {
42
43const char* values[] = {
44 "MT_TCP_LISTENER_MGR_STARTED", "MtTcpListenerMgr started with %1 threads, listening on %2:%3, use TLS: %4",
45 "MT_TCP_LISTENER_MGR_STOPPED", "MtTcpListenerMgr for %1:%2 stopped.",
46 "MT_TCP_LISTENER_MGR_STOPPING", "Stopping MtTcpListenerMgr for %1:%2",
47 "TCP_CLIENT_BAD_SERVER_RESPONSE_RECEIVED", "bad response received when communicating with %1 port %2: %3",
48 "TCP_CLIENT_BAD_SERVER_RESPONSE_RECEIVED_DETAILS", "detailed information about bad response received from %1 port %2:\n%3",
49 "TCP_CLIENT_CONNECTION_CLOSE_CALLBACK_FAILED", "Connection close callback threw an exception",
50 "TCP_CLIENT_MT_STARTED", "TcpClient has been started in multi-threaded mode running %1 threads",
51 "TCP_CLIENT_PREMATURE_CONNECTION_TIMEOUT_OCCURRED", "premature connection timeout occurred: in transaction ? %1, transid: %2, current_transid: %3",
52 "TCP_CLIENT_QUEUE_SIZE_GROWING", "queue for address: %1, port %2, now has %3 entries and may be growing too quickly",
53 "TCP_CLIENT_REQUEST_SEND", "sending TCP request %1 to %2 port %3",
54 "TCP_CLIENT_SERVER_RESPONSE_RECEIVED", "received TCP response from %1 port %2",
55 "TCP_CONNECTION_REJECTED_BY_FILTER", "connection from %1 has been denied by the connection filter.",
56 "TCP_CONNECTION_SHUTDOWN", "shutting down TCP connection from %1",
57 "TCP_CONNECTION_SHUTDOWN_FAILED", "shutting down TCP connection failed",
58 "TCP_CONNECTION_STOP", "stopping TCP connection from %1",
59 "TCP_CONNECTION_STOP_FAILED", "stopping TCP connection failed",
60 "TCP_DATA_RECEIVED", "received %1 bytes from %2",
61 "TCP_DATA_SENT", "send %1 bytes to %2",
62 "TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED", "closing connection with %1 as a result of a timeout",
63 "TCP_REQUEST_RECEIVED_FAILED", "An unexpected error occurred processing a request from %1, error: %2",
64 "TCP_REQUEST_RECEIVE_START", "start receiving request from %1 with timeout %2",
65 "TCP_SERVER_CLIENT_REQUEST_RECEIVED", "received TCP request from %1",
66 "TCP_SERVER_RESPONSE_SEND", "sending TCP response to %1",
67 "TLS_CONNECTION_HANDSHAKE_FAILED", "TLS handshake with %1 failed with %2",
68 "TLS_CONNECTION_HANDSHAKE_START", "start TLS handshake with %1 with timeout %2",
69 "TLS_REQUEST_RECEIVE_START", "start receiving request from %1 with timeout %2",
70 "TLS_SERVER_RESPONSE_SEND", "sending TLS response to %1",
71 NULL
72};
73
74const isc::log::MessageInitializer initializer(values);
75
76} // Anonymous namespace
77
isc::log::MessageInitializer
Initialize Message Dictionary.
Definition message_initializer.h:72
message_initializer.h
message_types.h
isc::log::MessageID
const char * MessageID
Definition message_types.h:15
isc::tcp
Definition mt_tcp_listener_mgr.cc:23
isc::tcp::TCP_CONNECTION_STOP_FAILED
const isc::log::MessageID TCP_CONNECTION_STOP_FAILED
Definition tcp_messages.h:26
isc::tcp::TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED
const isc::log::MessageID TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED
Definition tcp_messages.h:29
isc::tcp::TLS_REQUEST_RECEIVE_START
const isc::log::MessageID TLS_REQUEST_RECEIVE_START
Definition tcp_messages.h:36
isc::tcp::TCP_CLIENT_PREMATURE_CONNECTION_TIMEOUT_OCCURRED
const isc::log::MessageID TCP_CLIENT_PREMATURE_CONNECTION_TIMEOUT_OCCURRED
Definition tcp_messages.h:18
isc::tcp::TLS_CONNECTION_HANDSHAKE_FAILED
const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_FAILED
Definition tcp_messages.h:34
isc::tcp::TCP_CONNECTION_STOP
const isc::log::MessageID TCP_CONNECTION_STOP
Definition tcp_messages.h:25
isc::tcp::TCP_DATA_SENT
const isc::log::MessageID TCP_DATA_SENT
Definition tcp_messages.h:28
isc::tcp::TCP_CLIENT_BAD_SERVER_RESPONSE_RECEIVED
const isc::log::MessageID TCP_CLIENT_BAD_SERVER_RESPONSE_RECEIVED
Definition tcp_messages.h:14
isc::tcp::TCP_CLIENT_BAD_SERVER_RESPONSE_RECEIVED_DETAILS
const isc::log::MessageID TCP_CLIENT_BAD_SERVER_RESPONSE_RECEIVED_DETAILS
Definition tcp_messages.h:15
isc::tcp::TCP_CLIENT_SERVER_RESPONSE_RECEIVED
const isc::log::MessageID TCP_CLIENT_SERVER_RESPONSE_RECEIVED
Definition tcp_messages.h:21
isc::tcp::TCP_CONNECTION_REJECTED_BY_FILTER
const isc::log::MessageID TCP_CONNECTION_REJECTED_BY_FILTER
Definition tcp_messages.h:22
isc::tcp::MT_TCP_LISTENER_MGR_STARTED
const isc::log::MessageID MT_TCP_LISTENER_MGR_STARTED
Definition tcp_messages.h:11
isc::tcp::TLS_CONNECTION_HANDSHAKE_START
const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_START
Definition tcp_messages.h:35
isc::tcp::MT_TCP_LISTENER_MGR_STOPPING
const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPING
Definition tcp_messages.h:13
isc::tcp::TCP_SERVER_CLIENT_REQUEST_RECEIVED
const isc::log::MessageID TCP_SERVER_CLIENT_REQUEST_RECEIVED
Definition tcp_messages.h:32
isc::tcp::TLS_SERVER_RESPONSE_SEND
const isc::log::MessageID TLS_SERVER_RESPONSE_SEND
Definition tcp_messages.h:37
isc::tcp::TCP_DATA_RECEIVED
const isc::log::MessageID TCP_DATA_RECEIVED
Definition tcp_messages.h:27
isc::tcp::TCP_REQUEST_RECEIVE_START
const isc::log::MessageID TCP_REQUEST_RECEIVE_START
Definition tcp_messages.h:31
isc::tcp::TCP_SERVER_RESPONSE_SEND
const isc::log::MessageID TCP_SERVER_RESPONSE_SEND
Definition tcp_messages.h:33
isc::tcp::TCP_REQUEST_RECEIVED_FAILED
const isc::log::MessageID TCP_REQUEST_RECEIVED_FAILED
Definition tcp_messages.h:30
isc::tcp::MT_TCP_LISTENER_MGR_STOPPED
const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPED
Definition tcp_messages.h:12
isc::tcp::TCP_CLIENT_QUEUE_SIZE_GROWING
const isc::log::MessageID TCP_CLIENT_QUEUE_SIZE_GROWING
Definition tcp_messages.h:19
isc::tcp::TCP_CONNECTION_SHUTDOWN
const isc::log::MessageID TCP_CONNECTION_SHUTDOWN
Definition tcp_messages.h:23
isc::tcp::TCP_CONNECTION_SHUTDOWN_FAILED
const isc::log::MessageID TCP_CONNECTION_SHUTDOWN_FAILED
Definition tcp_messages.h:24
isc::tcp::TCP_CLIENT_CONNECTION_CLOSE_CALLBACK_FAILED
const isc::log::MessageID TCP_CLIENT_CONNECTION_CLOSE_CALLBACK_FAILED
Definition tcp_messages.h:16
isc::tcp::TCP_CLIENT_REQUEST_SEND
const isc::log::MessageID TCP_CLIENT_REQUEST_SEND
Definition tcp_messages.h:20
isc::tcp::TCP_CLIENT_MT_STARTED
const isc::log::MessageID TCP_CLIENT_MT_STARTED
Definition tcp_messages.h:17
isc
Defines the logger used by the top-level component of kea-lfc.
Definition check_exists_add.cc:18