BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
GWSListener provides an interface for delivering of events and messages related to communication with the remote gateway server. More...
#include <GWSListener.h>
Data Structures | |
struct | Address |
Public Types | |
typedef Poco::SharedPtr < GWSListener > | Ptr |
Public Member Functions | |
virtual void | onConnected (const Address &address) |
Fired when the connection to the remote server is successfully created and it is possible to exchange messages. | |
virtual void | onDisconnected (const Address &address) |
Fired when the connection to the remote server is considered broken or when it is disconnected on a request. | |
virtual void | onRequest (const GWRequest::Ptr request) |
When a request is received, this event is fired. | |
virtual void | onResponse (const GWResponse::Ptr response) |
When a response is received, this event is fired. | |
virtual void | onAck (const GWAck::Ptr ack) |
When an ack is received, this event is fired. | |
virtual void | onOther (const GWMessage::Ptr other) |
When a message other then request, response or ack is received, this event is fired. | |
virtual void | onTrySend (const GWMessage::Ptr message) |
Fire when a message is about to be sent to the server. After the send is successful (no network failure), the GWSListener::onSend() event would be generated as well. | |
virtual void | onSent (const GWMessage::Ptr message) |
Fire when a message is being sent to the server. There might be a delay between putting a messing into an output queue and the actual sending process. This event allows to track such delay. | |
GWSListener provides an interface for delivering of events and messages related to communication with the remote gateway server.