18 #ifndef _LOG4CXX_NET_TELNET_APPENDER_H
19 #define _LOG4CXX_NET_TELNET_APPENDER_H
55 static const int DEFAULT_PORT;
56 static const int MAX_CONNECTIONS;
71 bool requiresLayout() const override;
120 void setPort(
int newValue);
138 int getMaxConnections() const;
145 void setMaxConnections(
int newValue);
154 void setReuseAddress(
bool newValue);
163 void setNonBlocking(
bool newValue);
166 void close() override;
178 void write(helpers::ByteBuffer&);
179 void writeStatus(const helpers::SocketPtr& socket, const
LogString& msg, helpers::Pool& p);
180 void acceptConnections();
182 struct TelnetAppenderPriv;
#define LOG4CXX_APPEND_FORMAL_PARAMETERS
Log in Appender specific way.
Definition: appender.h:92
Implementation base class for all appenders.
Definition: appenderskeleton.h:45
The TelnetAppender writes log messages to clients that connect to the TCP port.
Definition: telnetappender.h:53
LOG4CXX_PTR_DEF(TelnetAppender)
std::basic_string< logchar > LogString
Definition: logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:154
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:148
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:41
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:160
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:142
#define LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS
Activate the options that were previously set with calls to option setters.
Definition: optionhandler.h:53