transport/transport.hh
More...
#include <SubscriptionTransport.hh>
Inherits CallbackHelper.
|
bool | latching |
| True means that the callback helper will get the last published message on the topic.
|
|
std::mutex | latchingMutex |
| Mutex to protect the latching variable.
|
|
transport/transport.hh
Handles sending data over the wire to remote subscribers
◆ SubscriptionTransport()
◆ ~SubscriptionTransport()
◆ GetConnection()
Get the connection we're using.
- Returns
- Pointer to the connection we're using
◆ GetId()
unsigned int GetId |
( |
| ) |
const |
|
inherited |
Get the unique ID of this callback.
- Returns
- The unique ID of this callback.
◆ GetLatching()
bool GetLatching |
( |
| ) |
const |
|
inherited |
Is the callback latching?
- Returns
- true if the callback is latching, false otherwise
◆ GetMsgType()
virtual std::string GetMsgType |
( |
| ) |
const |
|
virtualinherited |
◆ HandleData()
virtual bool HandleData |
( |
const std::string & | _newdata, |
|
|
boost::function< void(uint32_t)> | _cb, |
|
|
uint32_t | _id ) |
|
virtual |
Output a message to a connection.
- Parameters
-
[in] | _newdata | The message to be handled |
- Returns
- true if the message was handled successfully, false otherwise
- Parameters
-
[in] | _cb | If non-null, callback to be invoked after transmission is complete. |
[in] | _id | ID associated with the message data. |
Implements CallbackHelper.
◆ HandleMessage()
Process new incoming message.
- Parameters
-
[in] | _newMsg | Incoming message to be processed |
- Returns
- true if successfully processed; false otherwise
Implements CallbackHelper.
◆ Init()
Initialize the publication link.
- Parameters
-
[in] | _conn | The connection to use |
[in] | _latching | If true, latch the latest message; if false, don't latch |
◆ IsLocal()
virtual bool IsLocal |
( |
| ) |
const |
|
virtual |
Is the callback local?
- Returns
- true if the callback is local, false if the callback is tied to a remote connection
Implements CallbackHelper.
◆ SetLatching()
void SetLatching |
( |
bool | _latch | ) |
|
|
inherited |
◆ latching
True means that the callback helper will get the last published message on the topic.
◆ latchingMutex
|
mutableprotectedinherited |
Mutex to protect the latching variable.
The documentation for this class was generated from the following file: