com::pcbsys::nirvana::nAdminAPI::nChannelListener Class Reference

receives callback each time a new connection is added to or deleted from the channel More...

#include <nChannelListener.h>

Inheritance diagram for com::pcbsys::nirvana::nAdminAPI::nChannelListener:
com::pcbsys::nirvana::client::nChannelConnectionListener

Public Member Functions

virtual void delConnection (std::string connectionId)
 called when a connection is removed from the channel More...
 
 nChannelListener (nLeafNode *pLeaf, nAPIConnectionListener *pList)
 Constructs a new listener for the given channel. More...
 
virtual void newConnection (std::string connectionId, std::string *pSubject, int nSubject, std::string filter, std::string protocol, std::string subscriberName)
 called when a new connection is added to the channel More...
 

Detailed Description

receives callback each time a new connection is added to or deleted from the channel

Constructor & Destructor Documentation

com::pcbsys::nirvana::nAdminAPI::nChannelListener::nChannelListener ( nLeafNode pLeaf,
nAPIConnectionListener pList 
)

Constructs a new listener for the given channel.

Parameters
*pLeafthe leaf node to listen for connection changed on
*pList

Member Function Documentation

virtual void com::pcbsys::nirvana::nAdminAPI::nChannelListener::delConnection ( std::string  connectionId)
virtual

called when a connection is removed from the channel

Parameters
connectionIdID of the deleted connection

Implements com::pcbsys::nirvana::client::nChannelConnectionListener.

virtual void com::pcbsys::nirvana::nAdminAPI::nChannelListener::newConnection ( std::string  connectionId,
std::string *  pSubject,
int  nSubject,
std::string  filter,
std::string  protocol,
std::string  subscriberName 
)
virtual

called when a new connection is added to the channel

Parameters
connectionIdID of the new connection
*pSubjectuser name for the connection
filterselector applied
protocolprotocol used
subscriberNamesubscription name

Implements com::pcbsys::nirvana::client::nChannelConnectionListener.