 |
log4cplus
2.0.5
|
Go to the documentation of this file.
25 #ifndef LOG4CPLUS_HELPERS_CONNECTORTHREAD_H
26 #define LOG4CPLUS_HELPERS_CONNECTORTHREAD_H
30 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
39 #if ! defined (LOG4CPLUS_SINGLE_THREADED)
105 #endif // ! defined (LOG4CPLUS_SINGLE_THREADED)
107 #endif // LOG4CPLUS_HELPERS_CONNECTORTHREAD_H
This class implements client sockets (also called just "sockets").
There are many cross-platform C++ Threading libraries.
virtual void ctcSetConnected()=0
Sets connected flag to true in ConnectorThread's client.
virtual ~IConnectorThreadClient()
void terminate()
Call this function to terminate ConnectorThread.
IConnectorThreadClient & ctc
reference to ConnectorThread's client
void trigger()
This function triggers (trigger_ev) connection check and attempt to re-connect a broken connection,...
virtual thread::Mutex const & ctcGetAccessMutex() const =0
virtual ~ConnectorThread()
ConnectorThread(IConnectorThreadClient &client)
virtual helpers::Socket ctcConnect()=0
This class is used by SocketAppender and (remote) SysLogAppender to provide asynchronous re-connectio...
Interface implemented by users of ConnectorThread.
thread::ManualResetEvent trigger_ev
This event is the re-connection trigger.
bool exit_flag
When this variable set to true when ConnectorThread is signaled to.
virtual helpers::Socket & ctcGetSocket()=0