Public Member Functions | Private Member Functions | Private Attributes
industrial::simple_comms_fault_handler::SimpleCommsFaultHandler Class Reference

Default implementation of comms fault handler. This class attempts to reconnect if the connection is lost. More...

#include <simple_comms_fault_handler.h>

Inheritance diagram for industrial::simple_comms_fault_handler::SimpleCommsFaultHandler:
Inheritance graph
[legend]

List of all members.

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::SmplMsgConnectiongetConnection ()
 Gets connection for manager.
void setConnection (industrial::smpl_msg_connection::SmplMsgConnection *connection)
 Sets connection manager.

Private Attributes

industrial::smpl_msg_connection::SmplMsgConnectionconnection_
 Reference to reply connection (called if incoming message requires a reply)

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Gets connection for manager.

Returns:
connection reference

Definition at line 133 of file simple_comms_fault_handler.h.

Initializes default communications fault handler.

Parameters:
messageconnection to use for reconnecting
Returns:
true on success, false otherwise

Definition at line 58 of file simple_comms_fault_handler.cpp.

Receive failure callback method: Nothing is performed.

Implements industrial::comms_fault_handler::CommsFaultHandler.

Definition at line 100 of file simple_comms_fault_handler.h.

Send failure callback method: Nothing is performed.

Implements industrial::comms_fault_handler::CommsFaultHandler.

Definition at line 94 of file simple_comms_fault_handler.h.

Sets connection manager.

Parameters:
connectionconnection reference

Definition at line 122 of file simple_comms_fault_handler.h.


Member Data Documentation

Reference to reply connection (called if incoming message requires a reply)

Definition at line 115 of file simple_comms_fault_handler.h.


The documentation for this class was generated from the following files:


simple_message
Author(s): Shaun Edwards
autogenerated on Fri Jan 3 2014 11:26:56