Message handler that handles ping messages. More...
#include <ping_handler.h>
Public Member Functions | |
bool | init (industrial::smpl_msg_connection::SmplMsgConnection *connection) |
Class initializer. | |
bool | init (int msg_type, industrial::smpl_msg_connection::SmplMsgConnection *connection) |
Class initializer (Direct call to base class with the same name) I couldn't get the "using" form to work/. | |
Private Member Functions | |
bool | internalCB (industrial::simple_message::SimpleMessage &in) |
Callback executed upon receiving a ping message. |
Message handler that handles ping messages.
Responds to ping message types. A ping is a simple message that is meant to test communications channels. A ping simply responds with a copy of the data it was sent.
THIS CLASS IS NOT THREAD-SAFE
Definition at line 66 of file ping_handler.h.
bool industrial::ping_handler::PingHandler::init | ( | industrial::smpl_msg_connection::SmplMsgConnection * | connection | ) |
Class initializer.
connection | simple message connection that will be used to send replies. |
Definition at line 54 of file ping_handler.cpp.
bool industrial::ping_handler::PingHandler::init | ( | int | msg_type, |
industrial::smpl_msg_connection::SmplMsgConnection * | connection | ||
) | [inline] |
Class initializer (Direct call to base class with the same name) I couldn't get the "using" form to work/.
connection | simple message connection that will be used to send replies. |
Reimplemented from industrial::message_handler::MessageHandler.
Definition at line 87 of file ping_handler.h.
bool industrial::ping_handler::PingHandler::internalCB | ( | industrial::simple_message::SimpleMessage & | in | ) | [private, virtual] |
Callback executed upon receiving a ping message.
in | incoming message |
Implements industrial::message_handler::MessageHandler.
Definition at line 59 of file ping_handler.cpp.