EII Message Bus C Reference
Public Member Functions | Protected Member Functions | Friends | List of all members
eii::msgbus::Publisher Class Reference

#include <msgbus.hpp>

Public Member Functions

 ~Publisher ()
 
void publish (MsgEnvelope *msg)
 

Protected Member Functions

 Publisher (void *msgbus_ctx, publisher_ctx_t *pub_ctx)
 

Friends

class MsgbusContext
 

Detailed Description

EII Message Bus publisher wrapper.

Constructor & Destructor Documentation

◆ Publisher()

eii::msgbus::Publisher::Publisher ( void *  msgbus_ctx,
publisher_ctx_t pub_ctx 
)
protected

Constructor

Note
This should never be called directly except inside of the MsgbusContext object.

◆ ~Publisher()

eii::msgbus::Publisher::~Publisher ( )

Destructor

Member Function Documentation

◆ publish()

void eii::msgbus::Publisher::publish ( MsgEnvelope msg)

Publish a message over the EII message bus.

Note
delete should be called on the MsgEnvelope by the calling application after this method is called.
Exceptions
MsgbusExceptionThrown if an error occurs in the message bus.
Parameters
msg- MsgEnvelope to publish

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