Skip to content

ConnectionHandler

class ConnectionHandler : public virtual AMQP::LibBoostAsioHandler

@brief Declare our custom ConnectionHandler to implement their callbacks. Every callback delegates processing to externally assigned callback if it was set. ConnectionHandler object calls its callbacks as follows... while connecting... onAttached, onConnected, onReady in case of error ... onError, (onLost), onDetached in case of normal closure ... onClosed, onDetached

onAttached is called if new connection is associated with the handler onConnected is called if physical (TCP) connection is successfully established. onReady is called if login is successful onClosed is called in case of normal connection closure onError is called if errors encountered on connection onLost is called if onError was called and earlier onConnected was called. onDetached id called as a last step of connection loss