18 #ifndef _LOG4CXX_NET_SOCKET_APPENDER_SKELETON_H 19 #define _LOG4CXX_NET_SOCKET_APPENDER_SKELETON_H 21 #include <log4cxx/appenderskeleton.h> 22 #include <log4cxx/helpers/socket.h> 23 #include <log4cxx/helpers/thread.h> 24 #include <log4cxx/helpers/objectoutputstream.h> 27 #pragma warning ( push ) 28 #pragma warning ( disable: 4251 ) 51 helpers::InetAddressPtr address;
54 int reconnectionDelay;
97 remoteHost.assign(host);
132 this->locationInfo = locationInfo1;
154 this->reconnectionDelay = reconnectionDelay1;
162 return reconnectionDelay;
165 void fireConnector();
167 void setOption(
const LogString& option,
168 const LogString& value);
176 virtual int getDefaultDelay()
const = 0;
178 virtual int getDefaultPort()
const = 0;
193 static void* LOG4CXX_THREAD_FUNC monitor(apr_thread_t* thread,
void* data);
201 #if defined(_MSC_VER) 202 #pragma warning (pop) 205 #endif // _LOG4CXX_NET_SOCKET_APPENDER_SKELETON_H This class implements an approximation of java.util.Thread.
Definition: thread.h:59
int getReconnectionDelay() const
Returns value of the ReconnectionDelay option.
Definition: socketappenderskeleton.h:160
Implementation base class for all appenders.
Definition: appenderskeleton.h:45
void setPort(int port1)
The Port option takes a positive integer representing the port where the server is waiting for connec...
Definition: socketappenderskeleton.h:112
bool getLocationInfo() const
Returns value of the LocationInfo option.
Definition: socketappenderskeleton.h:138
Abstract base class for SocketAppender and XMLSocketAppender.
Definition: socketappenderskeleton.h:40
void setRemoteHost(const LogString &host)
The RemoteHost option takes a string value which should be the host name of the server where a Apache...
Definition: socketappenderskeleton.h:94
int getPort() const
Returns value of the Port option.
Definition: socketappenderskeleton.h:120
void setReconnectionDelay(int reconnectionDelay1)
The ReconnectionDelay option takes a positive integer representing the number of milliseconds to wait...
Definition: socketappenderskeleton.h:152
static InetAddressPtr getByName(const LogString &host)
Determines the IP address of a host, given the host's name.
const LogString & getRemoteHost() const
Returns value of the RemoteHost option.
Definition: socketappenderskeleton.h:103
bool requiresLayout() const
This appender does not use a layout.
Definition: socketappenderskeleton.h:84
void setLocationInfo(bool locationInfo1)
The LocationInfo option takes a boolean value.
Definition: socketappenderskeleton.h:130
Definition: appender.h:33