Subscription packet used in the discovery protocol for requesting information about a given topic.
More...
#include <ignition/transport/Packet.hh>
Subscription packet used in the discovery protocol for requesting information about a given topic.
- Deprecated:
- This class is deprecated. Discovery uses the gz::msgs::Discovery message.
◆ SubscriptionMsg() [1/2]
◆ SubscriptionMsg() [2/2]
Constructor.
- Parameters
-
[in] | _header | Message header. |
[in] | _topic | Topic name. |
◆ Header()
Get the message header.
- Returns
- Reference to the message header.
- See also
- SetHeader.
◆ MsgLength()
size_t MsgLength |
( |
| ) |
const |
Get the total length of the message.
- Returns
- Return the length of the message in bytes.
◆ Pack()
size_t Pack |
( |
char * |
_buffer | ) |
const |
Serialize the subscription message.
- Parameters
-
[out] | _buffer | Buffer where the message will be serialized. |
- Returns
- The length of the serialized message in bytes.
◆ SetHeader()
Set the header of the message.
- Parameters
-
[in] | _header | Message header. |
- See also
- Header.
◆ SetTopic()
Set the topic.
- Parameters
-
- See also
- Topic.
◆ Topic()
Get the topic.
- Returns
- Topic name.
- See also
- SetTopic.
◆ Unpack()
size_t Unpack |
( |
const char * |
_buffer | ) |
|
Unserialize a stream of bytes into a Sub.
- Parameters
-
[out] | _buffer | Unpack the body from the buffer. |
- Returns
- The number of bytes from the body.
The documentation for this class was generated from the following file: