AMPS C/C++ Client Class Reference AMPS C/C++ Client Version 5.3.5.6

Public Types | Public Member Functions | List of all members
AMPS::ConnectionStateListener Class Referenceabstract

Abstract base class for connection state listeners. More...

`#include <ampsplusplus.hpp>`

Inherited by AMPS::ClientImpl::FlushAckHandler`[private]`, and AMPS::MessageStreamImpl`[private]`.

## Public Types
enum | State
| Constants for the state of the connection.

## Public Member Functions
virtual void | connectionStateChanged (State newState_)=0
| Pure virtual method for receiving the change in connection state. More...

## Detailed Description

Abstract base class for connection state listeners.

To implement a connection state listener, derive from this class and implement the connectionStateChanged method.

## Member Function Documentation

## ◆ connectionStateChanged()

virtual void AMPS::ConnectionStateListener::connectionStateChanged | ( | State | newState_ | ) |
| pure virtual

Pure virtual method for receiving the change in connection state.

Override this in a derived class to receive notification of changes in connection state. Notice that this method is called as soon as the client detects the change of state. This means that, for example, when the method is called because the client is connected, the client has not yet logged on or completed any recovery (such as replaying the publish store, re-entering subscriptions, and so on). The listener should not issue commands on the client while recovery is in progress.

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

- include/amps/ampsplusplus.hpp