Classes Files

Wombat::MamaTransportCallback

More…

#include <MamaTransport.h>

Public Functions

  Name
virtual ~MamaTransportCallback()
virtual void onDisconnect(MamaTransport * transport, const void * platformInfo)
virtual void onReconnect(MamaTransport * transport, const void * platformInfo)
virtual void onQuality(MamaTransport * transport, short cause, const void * platformInfo) =0
virtual void onConnect(MamaTransport * transport, const void * platformInfo)
virtual void onAccept(MamaTransport * transport, const void * platformInfo)
virtual void onAcceptReconnect(MamaTransport * transport, const void * platformInfo)
virtual void onPublisherDisconnect(MamaTransport * transport, const void * platformInfo)
virtual void onNamingServiceConnect(MamaTransport * transport, const void * platformInfo)
virtual void onNamingServiceDisconnect(MamaTransport * transport, const void * platformInfo)

Detailed Description

class Wombat::MamaTransportCallback;

Transport callback.

Public Functions Documentation

function ~MamaTransportCallback

inline virtual ~MamaTransportCallback()

function onDisconnect

inline virtual void onDisconnect(
    MamaTransport * transport,
    const void * platformInfo
)

Parameters:

  • transport The transport which has disconnected.
  • platformInfo Info associated with the event.

Invoked on a publisher when a subscriber disconnects.

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

function onReconnect

inline virtual void onReconnect(
    MamaTransport * transport,
    const void * platformInfo
)

Parameters:

  • transport The transport which has reconnected.
  • platformInfo Info associated with the event.

Invoked when the transport reconnects

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

function onQuality

virtual void onQuality(
    MamaTransport * transport,
    short cause,
    const void * platformInfo
) =0

Parameters:

  • transport The transport on which the quality has changed.
  • cause The cause of the quality event.
  • platformInfo Info associated with the quality event.

Invoked when the quality of this transport changes.

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.

function onConnect

inline virtual void onConnect(
    MamaTransport * transport,
    const void * platformInfo
)

Parameters:

  • transport The transport which has connected.
  • platformInfo Info associated with the event.

Invoked on the subscriber when the transport connects.

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

function onAccept

inline virtual void onAccept(
    MamaTransport * transport,
    const void * platformInfo
)

Parameters:

  • transport The transport which has accepted.
  • platformInfo Info associated with the event.

Invoked on the publisher when the transport accepts a connection.

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

function onAcceptReconnect

inline virtual void onAcceptReconnect(
    MamaTransport * transport,
    const void * platformInfo
)

Parameters:

  • transport The transport which has reconnected on
  • platformInfo Info associated with the event.

Invoked on the publisher when the transport accepts a reconnection.

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

function onPublisherDisconnect

inline virtual void onPublisherDisconnect(
    MamaTransport * transport,
    const void * platformInfo
)

Parameters:

  • transport The transport which has disconnected on
  • platformInfo Info associated with the event.

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

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

function onNamingServiceConnect

inline virtual void onNamingServiceConnect(
    MamaTransport * transport,
    const void * platformInfo
)

Parameters:

  • transport The transport which has connected.
  • platformInfo Info associated with the event.

Invoked on the subscriber when the naming service connects.

function onNamingServiceDisconnect

inline virtual void onNamingServiceDisconnect(
    MamaTransport * transport,
    const void * platformInfo
)

Parameters:

  • transport The transport which has connected.
  • platformInfo Info associated with the event.

Invoked on the subscriber when the naming service disconnects.


Updated on 2023-03-31 at 15:29:26 +0100