OpenMAMA C++ API
Wombat::MamaTransportCallback Class Referenceabstract

Transport callback. More...

#include <MamaTransport.h>

Public Member Functions

virtual ~MamaTransportCallback ()
 
virtual void onDisconnect (MamaTransport *transport, const void *platformInfo)
 Invoked on a publisher when a subscriber disconnects. More...
 
virtual void onReconnect (MamaTransport *transport, const void *platformInfo)
 Invoked when the transport reconnects. More...
 
virtual void onQuality (MamaTransport *transport, short cause, const void *platformInfo)=0
 Invoked when the quality of this transport changes. More...
 
virtual void onConnect (MamaTransport *transport, const void *platformInfo)
 Invoked on the subscriber when the transport connects. More...
 
virtual void onAccept (MamaTransport *transport, const void *platformInfo)
 Invoked on the publisher when the transport accepts a connection. More...
 
virtual void onAcceptReconnect (MamaTransport *transport, const void *platformInfo)
 Invoked on the publisher when the transport accepts a reconnection. More...
 
virtual void onPublisherDisconnect (MamaTransport *transport, const void *platformInfo)
 Invoked on the subscriber when the transport disconnects from the publisher. More...
 
virtual void onNamingServiceConnect (MamaTransport *transport, const void *platformInfo)
 Invoked on the subscriber when the naming service connects. More...
 
virtual void onNamingServiceDisconnect (MamaTransport *transport, const void *platformInfo)
 Invoked on the subscriber when the naming service disconnects. More...
 

Detailed Description

Transport callback.

Constructor & Destructor Documentation

§ ~MamaTransportCallback()

virtual Wombat::MamaTransportCallback::~MamaTransportCallback ( )
inlinevirtual

Member Function Documentation

§ onDisconnect()

virtual void Wombat::MamaTransportCallback::onDisconnect ( MamaTransport transport,
const void *  platformInfo 
)
inlinevirtual

Invoked on a publisher when a subscriber disconnects.

Parameters
transportThe transport which has disconnected.
platformInfoInfo associated with the event.

The cause and platformInfo are supplied only by some middlewares. The information provided by platformInfo is middleware specific. The following middlewares are supported:

tibrv: provides the char* version of the tibrv advisory message. wmw: provides a pointer to a C mamaConnection struct for the event

§ onReconnect()

virtual void Wombat::MamaTransportCallback::onReconnect ( MamaTransport transport,
const void *  platformInfo 
)
inlinevirtual

Invoked when the transport reconnects.

Parameters
transportThe transport which has reconnected.
platformInfoInfo associated with the event.

The cause and platformInfo are supplied only by some middlewares. The information provided by platformInfo is middleware specific. The following middlewares are supported:

tibrv: provides the char* version of the tibrv advisory message. wmw: provides a pointer to a C mamaConnection struct for the event

§ onQuality()

virtual void Wombat::MamaTransportCallback::onQuality ( MamaTransport transport,
short  cause,
const void *  platformInfo 
)
pure virtual

Invoked when the quality of this transport changes.

Parameters
transportThe transport on which the quality has changed.
causeThe cause of the quality event.
platformInfoInfo associated with the quality event.

The cause and platformInfo are supplied only by some middlewares. The information provided by platformInfo is middleware specific. The following middlewares are supported:

tibrv: provides the char* version of the tibrv advisory message.

§ onConnect()

virtual void Wombat::MamaTransportCallback::onConnect ( MamaTransport transport,
const void *  platformInfo 
)
inlinevirtual

Invoked on the subscriber when the transport connects.

Parameters
transportThe transport which has connected.
platformInfoInfo associated with the event.

The cause and platformInfo are supplied only by some middlewares. The information provided by platformInfo is middleware specific. The following middlewares are supported:

wmw: provides a pointer to a C mamaConnection struct for the event

§ onAccept()

virtual void Wombat::MamaTransportCallback::onAccept ( MamaTransport transport,
const void *  platformInfo 
)
inlinevirtual

Invoked on the publisher when the transport accepts a connection.

Parameters
transportThe transport which has accepted.
platformInfoInfo associated with the event.

The cause and platformInfo are supplied only by some middlewares. The information provided by platformInfo is middleware specific. The following middlewares are supported:

wmw: provides a pointer to a C mamaConnection struct for the event

§ onAcceptReconnect()

virtual void Wombat::MamaTransportCallback::onAcceptReconnect ( MamaTransport transport,
const void *  platformInfo 
)
inlinevirtual

Invoked on the publisher when the transport accepts a reconnection.

Parameters
transportThe transport which has reconnected on
platformInfoInfo associated with the event.

The cause and platformInfo are supplied only by some middlewares. The information provided by platformInfo is middleware specific. The following middlewares are supported:

wmw: provides a pointer to a C mamaConnection struct for the event

§ onPublisherDisconnect()

virtual void Wombat::MamaTransportCallback::onPublisherDisconnect ( MamaTransport transport,
const void *  platformInfo 
)
inlinevirtual

Invoked on the subscriber when the transport disconnects from the publisher.

Parameters
transportThe transport which has disconnected on
platformInfoInfo associated with the event.

The cause and platformInfo are supplied only by some middlewares. The information provided by platformInfo is middleware specific. The following middlewares are supported:

wmw: provides a pointer to a C mamaConnection struct for the event

§ onNamingServiceConnect()

virtual void Wombat::MamaTransportCallback::onNamingServiceConnect ( MamaTransport transport,
const void *  platformInfo 
)
inlinevirtual

Invoked on the subscriber when the naming service connects.

Parameters
transportThe transport which has connected.
platformInfoInfo associated with the event.

§ onNamingServiceDisconnect()

virtual void Wombat::MamaTransportCallback::onNamingServiceDisconnect ( MamaTransport transport,
const void *  platformInfo 
)
inlinevirtual

Invoked on the subscriber when the naming service disconnects.

Parameters
transportThe transport which has connected.
platformInfoInfo associated with the event.