18 #ifndef _LOG4CXX_NET_SOCKET_APPENDER_SKELETON_H 19 #define _LOG4CXX_NET_SOCKET_APPENDER_SKELETON_H 25 #include <condition_variable> 28 #pragma warning ( push ) 29 #pragma warning ( disable: 4251 ) 52 helpers::InetAddressPtr address;
55 int reconnectionDelay;
98 remoteHost.assign(host);
133 this->locationInfo = locationInfo1;
155 this->reconnectionDelay = reconnectionDelay1;
163 return reconnectionDelay;
166 void fireConnector();
177 virtual int getDefaultDelay()
const = 0;
179 virtual int getDefaultPort()
const = 0;
194 std::condition_variable interrupt;
195 std::mutex interrupt_mutex;
205 #if defined(_MSC_VER) 206 #pragma warning (pop) 209 #endif // _LOG4CXX_NET_SOCKET_APPENDER_SKELETON_H int getReconnectionDelay() const
Returns value of the ReconnectionDelay option.
Definition: socketappenderskeleton.h:161
Implementation base class for all appenders.
Definition: appenderskeleton.h:43
void setPort(int port1)
The Port option takes a positive integer representing the port where the server is waiting for connec...
Definition: socketappenderskeleton.h:113
bool getLocationInfo() const
Returns value of the LocationInfo option.
Definition: socketappenderskeleton.h:139
Abstract base class for SocketAppender and XMLSocketAppender.
Definition: socketappenderskeleton.h:41
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:95
int getPort() const
Returns value of the Port option.
Definition: socketappenderskeleton.h:121
void setReconnectionDelay(int reconnectionDelay1)
The ReconnectionDelay option takes a positive integer representing the number of milliseconds to wait...
Definition: socketappenderskeleton.h:153
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:104
bool requiresLayout() const
This appender does not use a layout.
Definition: socketappenderskeleton.h:85
void setLocationInfo(bool locationInfo1)
The LocationInfo option takes a boolean value.
Definition: socketappenderskeleton.h:131
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66