OpenMAMA
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
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

virtual Wombat::MamaTransportCallback::~MamaTransportCallback ( )
virtual
72  {
73  };

Member Function Documentation

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

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

91  {
92  return;
93  }
virtual void Wombat::MamaTransportCallback::onReconnect ( MamaTransport transport,
const void *  platformInfo 
)
virtual

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

111  {
112  return;
113  }
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.

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

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

148  {
149  return;
150  }
virtual void Wombat::MamaTransportCallback::onAccept ( MamaTransport transport,
const void *  platformInfo 
)
virtual

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

167  {
168  return;
169  }
virtual void Wombat::MamaTransportCallback::onAcceptReconnect ( MamaTransport transport,
const void *  platformInfo 
)
virtual

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

186  {
187  return;
188  }
virtual void Wombat::MamaTransportCallback::onPublisherDisconnect ( MamaTransport transport,
const void *  platformInfo 
)
virtual

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

205  {
206  return;
207  }
virtual void Wombat::MamaTransportCallback::onNamingServiceConnect ( MamaTransport transport,
const void *  platformInfo 
)
virtual

Invoked on the subscriber when the naming service connects.

Parameters
transportThe transport which has connected.
platformInfoInfo associated with the event.
218  {
219  return;
220  }
virtual void Wombat::MamaTransportCallback::onNamingServiceDisconnect ( MamaTransport transport,
const void *  platformInfo 
)
virtual

Invoked on the subscriber when the naming service disconnects.

Parameters
transportThe transport which has connected.
platformInfoInfo associated with the event.
231  {
232  return;
233  }

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


© 2012 Linux Foundation