BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Data Structures | Public Types | Public Member Functions
BeeeOn::GWSListener Class Reference

GWSListener provides an interface for delivering of events and messages related to communication with the remote gateway server. More...

#include <GWSListener.h>

Inheritance diagram for BeeeOn::GWSListener:
BeeeOn::GWSCommandHandler BeeeOn::GWSCommandSender BeeeOn::GWSOptimisticExporter BeeeOn::GWSQueuingExporter BeeeOn::GWSResender

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.
 

Detailed Description

GWSListener provides an interface for delivering of events and messages related to communication with the remote gateway server.


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