Kea 2.7.0
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>
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_REQUEST_RECEIVED = "TCP_CLIENT_REQUEST_RECEIVED";
14extern const isc::log::MessageID TCP_CONNECTION_CLOSE_CALLBACK_FAILED = "TCP_CONNECTION_CLOSE_CALLBACK_FAILED";
15extern const isc::log::MessageID TCP_CONNECTION_REJECTED_BY_FILTER = "TCP_CONNECTION_REJECTED_BY_FILTER";
16extern const isc::log::MessageID TCP_CONNECTION_SHUTDOWN = "TCP_CONNECTION_SHUTDOWN";
17extern const isc::log::MessageID TCP_CONNECTION_SHUTDOWN_FAILED = "TCP_CONNECTION_SHUTDOWN_FAILED";
18extern const isc::log::MessageID TCP_CONNECTION_STOP = "TCP_CONNECTION_STOP";
19extern const isc::log::MessageID TCP_CONNECTION_STOP_FAILED = "TCP_CONNECTION_STOP_FAILED";
20extern const isc::log::MessageID TCP_DATA_RECEIVED = "TCP_DATA_RECEIVED";
21extern const isc::log::MessageID TCP_DATA_SENT = "TCP_DATA_SENT";
22extern const isc::log::MessageID TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED = "TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED";
23extern const isc::log::MessageID TCP_PREMATURE_CONNECTION_TIMEOUT_OCCURRED = "TCP_PREMATURE_CONNECTION_TIMEOUT_OCCURRED";
24extern const isc::log::MessageID TCP_REQUEST_RECEIVED_FAILED = "TCP_REQUEST_RECEIVED_FAILED";
25extern const isc::log::MessageID TCP_REQUEST_RECEIVE_START = "TCP_REQUEST_RECEIVE_START";
26extern const isc::log::MessageID TCP_SERVER_RESPONSE_SEND = "TCP_SERVER_RESPONSE_SEND";
27extern const isc::log::MessageID TCP_SERVER_RESPONSE_SEND_DETAILS = "TCP_SERVER_RESPONSE_SEND_DETAILS";
28extern const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_FAILED = "TLS_CONNECTION_HANDSHAKE_FAILED";
29extern const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_START = "TLS_CONNECTION_HANDSHAKE_START";
30extern const isc::log::MessageID TLS_REQUEST_RECEIVE_START = "TLS_REQUEST_RECEIVE_START";
31extern const isc::log::MessageID TLS_SERVER_RESPONSE_SEND = "TLS_SERVER_RESPONSE_SEND";
32
33} // namespace tcp
34} // namespace isc
35
36namespace {
37
38const char* values[] = {
39 "MT_TCP_LISTENER_MGR_STARTED", "MtTcpListenerMgr started with %1 threads, listening on %2:%3, use TLS: %4",
40 "MT_TCP_LISTENER_MGR_STOPPED", "MtTcpListenerMgr for %1:%2 stopped.",
41 "MT_TCP_LISTENER_MGR_STOPPING", "Stopping MtTcpListenerMgr for %1:%2",
42 "TCP_CLIENT_REQUEST_RECEIVED", "received TCP request from %1",
43 "TCP_CONNECTION_CLOSE_CALLBACK_FAILED", "Connection close callback threw an exception",
44 "TCP_CONNECTION_REJECTED_BY_FILTER", "connection from %1 has been denied by the connection filter.",
45 "TCP_CONNECTION_SHUTDOWN", "shutting down TCP connection from %1",
46 "TCP_CONNECTION_SHUTDOWN_FAILED", "shutting down TCP connection failed",
47 "TCP_CONNECTION_STOP", "stopping TCP connection from %1",
48 "TCP_CONNECTION_STOP_FAILED", "stopping TCP connection failed",
49 "TCP_DATA_RECEIVED", "received %1 bytes from %2",
50 "TCP_DATA_SENT", "send %1 bytes to %2",
51 "TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED", "closing connection with %1 as a result of a timeout",
52 "TCP_PREMATURE_CONNECTION_TIMEOUT_OCCURRED", "premature connection timeout occurred: in transaction ? %1, transid: %2, current_transid: %3",
53 "TCP_REQUEST_RECEIVED_FAILED", "An unexpected error occurred processing a request from %1, error: %2",
54 "TCP_REQUEST_RECEIVE_START", "start receiving request from %1 with timeout %2",
55 "TCP_SERVER_RESPONSE_SEND", "sending TCP response to %1",
56 "TCP_SERVER_RESPONSE_SEND_DETAILS", "detailed information about response sent to %1:\n%2",
57 "TLS_CONNECTION_HANDSHAKE_FAILED", "TLS handshake with %1 failed with %2",
58 "TLS_CONNECTION_HANDSHAKE_START", "start TLS handshake with %1 with timeout %2",
59 "TLS_REQUEST_RECEIVE_START", "start receiving request from %1 with timeout %2",
60 "TLS_SERVER_RESPONSE_SEND", "sending TLS response to %1",
61 NULL
62};
63
64const isc::log::MessageInitializer initializer(values);
65
66} // Anonymous namespace
67
Initialize Message Dictionary.
const char * MessageID
const isc::log::MessageID TCP_CONNECTION_STOP_FAILED
const isc::log::MessageID TCP_IDLE_CONNECTION_TIMEOUT_OCCURRED
const isc::log::MessageID TLS_REQUEST_RECEIVE_START
const isc::log::MessageID TCP_PREMATURE_CONNECTION_TIMEOUT_OCCURRED
const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_FAILED
const isc::log::MessageID TCP_CONNECTION_STOP
const isc::log::MessageID TCP_DATA_SENT
const isc::log::MessageID TCP_CONNECTION_REJECTED_BY_FILTER
const isc::log::MessageID MT_TCP_LISTENER_MGR_STARTED
const isc::log::MessageID TLS_CONNECTION_HANDSHAKE_START
const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPING
const isc::log::MessageID TLS_SERVER_RESPONSE_SEND
const isc::log::MessageID TCP_DATA_RECEIVED
const isc::log::MessageID TCP_REQUEST_RECEIVE_START
const isc::log::MessageID TCP_SERVER_RESPONSE_SEND
const isc::log::MessageID TCP_REQUEST_RECEIVED_FAILED
const isc::log::MessageID MT_TCP_LISTENER_MGR_STOPPED
const isc::log::MessageID TCP_CONNECTION_SHUTDOWN
const isc::log::MessageID TCP_CONNECTION_CLOSE_CALLBACK_FAILED
const isc::log::MessageID TCP_CONNECTION_SHUTDOWN_FAILED
const isc::log::MessageID TCP_CLIENT_REQUEST_RECEIVED
const isc::log::MessageID TCP_SERVER_RESPONSE_SEND_DETAILS
Defines the logger used by the top-level component of kea-lfc.