Packet.hh
void SetHeader(const transport::Header &_header)
Set the header of the message.
Definition: Packet.hh:264
size_t MsgLength() const
Get the total length of the message.
Definition: Packet.hh:279
size_t MsgLength() const
Get the total length of the message.
Definition: AdvertiseOptions.hh:27
STL class.
T & Publisher()
Get the publisher of this message.
Definition: Packet.hh:256
transport::Header Header() const
Get the message header.
Definition: Packet.hh:248
size_t Unpack(const char *_buffer)
Unserialize a stream of bytes into an AdvertiseMessage.
Definition: Packet.hh:306
static const std::vector< std::string > MsgTypesStr
Used for debugging the message type received/send.
Definition: Packet.hh:44
Advertise packet used in the discovery protocol to broadcast information about the node advertising a...
Definition: Packet.hh:230
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.
size_t Pack(char *_buffer) const
Serialize the subscription message.
friend std::ostream & operator<<(std::ostream &_out, const AdvertiseMessage &_msg)
Stream insertion operator.
Definition: Packet.hh:318
friend std::ostream & operator<<(std::ostream &_out, const SubscriptionMsg &_msg)
Stream insertion operator.
Definition: Packet.hh:196
*brief Advertise a new service without any output parameter *In this version the callback is a free function *param[in] _topic Topic name associated to the service *param[in] _cb Callback to handle the service request with the *following void(*) const AdvertiseServiceOptions const ReplyT std::string _topic)
Definition: Node.hh:528
size_t Pack(char *_buffer) const
Serialize the advertise message.
Definition: Packet.hh:287
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: Packet.hh:272
Header included in each discovery message containing the version of the discovery protocol,...
Definition: Packet.hh:54
friend std::ostream & operator<<(std::ostream &_out, const Header &_header)
Stream insertion operator.
Definition: Packet.hh:130
Subscription packet used in the discovery protocol for requesting information about a given topic.
Definition: Packet.hh:158
AdvertiseMessage(const Header &_header, const T &_publisher)
Constructor.
Definition: Packet.hh:238
size_t Pack(char *_buffer) const
Serialize the header. The caller has ownership of the buffer and is responsible for its [de]allocatio...