gz/transport/Packet.hh
void SetHeader(const transport::Header &_header)
Set the header of the message.
Definition: gz/transport/Packet.hh:300
size_t MsgLength() const
Get the total length of the message.
Definition: gz/transport/Packet.hh:315
size_t MsgLength() const
Get the total length of the message.
Definition: gz/transport/AdvertiseOptions.hh:28
STL class.
T & Publisher()
Get the publisher of this message.
Definition: gz/transport/Packet.hh:292
transport::Header Header() const
Get the message header.
Definition: gz/transport/Packet.hh:284
size_t Unpack(const char *_buffer)
Unserialize a stream of bytes into an AdvertiseMessage.
Definition: gz/transport/Packet.hh:342
static const std::vector< std::string > MsgTypesStr
Used for debugging the message type received/send.
Definition: gz/transport/Packet.hh:57
Advertise packet used in the discovery protocol to broadcast information about the node advertising a...
Definition: gz/transport/Packet.hh:266
static const uint8_t Uninitialized
Definition: gz/transport/Packet.hh:41
void SetVersion(const uint16_t _version)
Set the discovery protocol version.
size_t Unpack(const char *_buffer)
Unserialize a stream of bytes into a Sub.
T at(T... args)
STL class.
void SetHeader(const transport::Header &_header)
Set the header of the message.
static const uint8_t EndConnection
Definition: gz/transport/Packet.hh:48
size_t Pack(char *_buffer) const
Serialize the subscription message.
friend std::ostream & operator<<(std::ostream &_out, const AdvertiseMessage &_msg)
Stream insertion operator.
Definition: gz/transport/Packet.hh:361
friend std::ostream & operator<<(std::ostream &_out, const SubscriptionMsg &_msg)
Stream insertion operator.
Definition: gz/transport/Packet.hh:223
size_t Pack(char *_buffer) const
Serialize the advertise message.
Definition: gz/transport/Packet.hh:323
void SetTopic(const std::string &_topic)
Set the topic.
T endl(T... args)
void SetPublisher(const T &_publisher)
Set the publisher of this message.
Definition: gz/transport/Packet.hh:308
Header included in each discovery message containing the version of the discovery protocol,...
Definition: gz/transport/Packet.hh:69
static const uint8_t NewConnection
Definition: gz/transport/Packet.hh:47
friend std::ostream & operator<<(std::ostream &_out, const Header &_header)
Stream insertion operator.
Definition: gz/transport/Packet.hh:145
static const uint8_t HeartbeatType
Definition: gz/transport/Packet.hh:45
void SetFromDiscovery(const msgs::Discovery &_msg)
Set from discovery message.
Definition: gz/transport/Packet.hh:353
Subscription packet used in the discovery protocol for requesting information about a given topic.
Definition: gz/transport/Packet.hh:184
AdvertiseMessage(const Header &_header, const T &_publisher)
Constructor.
Definition: gz/transport/Packet.hh:274
size_t Pack(char *_buffer) const
Serialize the header. The caller has ownership of the buffer and is responsible for its [de]allocatio...