42 namespace simple_comms_fault_handler
59 if (NULL != connection)
62 LOG_INFO(
"Default communications fault handler successfully initialized");
67 LOG_ERROR(
"Failed to initialize default communications fault handler");
78 LOG_INFO(
"Connection failed, attempting reconnect");
83 LOG_WARN(
"Connection fail callback called while still connected (Possible bug)");
void setConnection(industrial::smpl_msg_connection::SmplMsgConnection *connection)
Sets connection manager.
Defines an interface and common methods for sending simple messages (see simple_message). This interface makes a bare minimum of assumptions:
#define LOG_WARN(format,...)
void connectionFailCB()
Connection failure callback method: On a connection failure a blocking reconnection is attempted...
#define LOG_ERROR(format,...)
#define LOG_INFO(format,...)
bool init(industrial::smpl_msg_connection::SmplMsgConnection *connection)
Initializes default communications fault handler.
SimpleCommsFaultHandler()
Default constructor.
~SimpleCommsFaultHandler()
Destructor.
industrial::smpl_msg_connection::SmplMsgConnection * connection_
Reference to reply connection (called if incoming message requires a reply)
industrial::smpl_msg_connection::SmplMsgConnection * getConnection()
Gets connection for manager.
virtual bool makeConnect()=0
connects to the remote host