18 #ifndef _LOG4CXX_NET_TELNET_APPENDER_H 19 #define _LOG4CXX_NET_TELNET_APPENDER_H 22 #pragma warning ( push ) 23 #pragma warning ( disable: 4231 4251 4275 4786 ) 28 #include <log4cxx/appenderskeleton.h> 29 #include <log4cxx/helpers/socket.h> 30 #include <log4cxx/helpers/serversocket.h> 31 #include <log4cxx/helpers/thread.h> 33 #include <log4cxx/helpers/charsetencoder.h> 43 typedef log4cxx::helpers::SocketPtr Connection;
44 LOG4CXX_LIST_DEF(ConnectionList, Connection);
74 friend class SocketHandler;
76 static const int DEFAULT_PORT;
77 static const int MAX_CONNECTIONS;
82 BEGIN_LOG4CXX_CAST_MAP()
85 END_LOG4CXX_CAST_MAP()
98 LogString getEncoding()
const;
99 void setEncoding(
const LogString& value);
109 virtual void setOption(
const LogString& option,
const LogString& value);
145 void writeStatus(
const log4cxx::helpers::SocketPtr& socket,
const LogString& msg,
log4cxx::helpers::Pool& p);
146 ConnectionList connections;
148 log4cxx::helpers::CharsetEncoderPtr encoder;
151 size_t activeConnections;
152 static void* LOG4CXX_THREAD_FUNC acceptConnections(apr_thread_t* thread,
void* data);
160 #if defined(_MSC_VER) 161 #pragma warning ( pop ) 164 #endif // _LOG4CXX_NET_TELNET_APPENDER_H This class implements an approximation of java.util.Thread.
Definition: thread.h:59
Implementation base class for all appenders.
Definition: appenderskeleton.h:45
Definition: telnetappender.h:71
Definition: serversocket.h:28
virtual bool requiresLayout() const
This appender requires a layout to format the text to the attached client(s).
Definition: telnetappender.h:93
A byte buffer.
Definition: bytebuffer.h:33
Definition: appender.h:33
int getPort() const
Returns value of the Port option.
Definition: telnetappender.h:114
void setPort(int port1)
The Port option takes a positive integer representing the port where the server is waiting for connec...
Definition: telnetappender.h:123