Default implementation of comms fault handler. This class attempts to reconnect if the connection is lost. More...
#include <simple_comms_fault_handler.h>
Public Member Functions | |
void | connectionFailCB () |
Connection failure callback method: On a connection failure a blocking reconnection is attempted. | |
bool | init (industrial::smpl_msg_connection::SmplMsgConnection *connection) |
Initializes default communications fault handler. | |
void | receiveFailCB () |
Receive failure callback method: Nothing is performed. | |
void | sendFailCB () |
Send failure callback method: Nothing is performed. | |
SimpleCommsFaultHandler () | |
Default constructor. | |
~SimpleCommsFaultHandler () | |
Destructor. | |
Private Member Functions | |
industrial::smpl_msg_connection::SmplMsgConnection * | getConnection () |
Gets connection for manager. | |
void | setConnection (industrial::smpl_msg_connection::SmplMsgConnection *connection) |
Sets connection manager. | |
Private Attributes | |
industrial::smpl_msg_connection::SmplMsgConnection * | connection_ |
Reference to reply connection (called if incoming message requires a reply) |
Default implementation of comms fault handler. This class attempts to reconnect if the connection is lost.
THIS CLASS IS NOT THREAD-SAFE
Definition at line 64 of file simple_comms_fault_handler.h.
Default constructor.
Definition at line 48 of file simple_comms_fault_handler.cpp.
Destructor.
Definition at line 54 of file simple_comms_fault_handler.cpp.
void industrial::simple_comms_fault_handler::SimpleCommsFaultHandler::connectionFailCB | ( | ) | [virtual] |
Connection failure callback method: On a connection failure a blocking reconnection is attempted.
Implements industrial::comms_fault_handler::CommsFaultHandler.
Definition at line 76 of file simple_comms_fault_handler.cpp.
industrial::smpl_msg_connection::SmplMsgConnection* industrial::simple_comms_fault_handler::SimpleCommsFaultHandler::getConnection | ( | ) | [inline, private] |
Gets connection for manager.
Definition at line 133 of file simple_comms_fault_handler.h.
bool industrial::simple_comms_fault_handler::SimpleCommsFaultHandler::init | ( | industrial::smpl_msg_connection::SmplMsgConnection * | connection | ) |
Initializes default communications fault handler.
message | connection to use for reconnecting |
Definition at line 58 of file simple_comms_fault_handler.cpp.
void industrial::simple_comms_fault_handler::SimpleCommsFaultHandler::receiveFailCB | ( | ) | [inline, virtual] |
Receive failure callback method: Nothing is performed.
Implements industrial::comms_fault_handler::CommsFaultHandler.
Definition at line 100 of file simple_comms_fault_handler.h.
void industrial::simple_comms_fault_handler::SimpleCommsFaultHandler::sendFailCB | ( | ) | [inline, virtual] |
Send failure callback method: Nothing is performed.
Implements industrial::comms_fault_handler::CommsFaultHandler.
Definition at line 94 of file simple_comms_fault_handler.h.
void industrial::simple_comms_fault_handler::SimpleCommsFaultHandler::setConnection | ( | industrial::smpl_msg_connection::SmplMsgConnection * | connection | ) | [inline, private] |
Sets connection manager.
connection | connection reference |
Definition at line 122 of file simple_comms_fault_handler.h.
industrial::smpl_msg_connection::SmplMsgConnection* industrial::simple_comms_fault_handler::SimpleCommsFaultHandler::connection_ [private] |
Reference to reply connection (called if incoming message requires a reply)
Definition at line 115 of file simple_comms_fault_handler.h.