Turi Create
4.0
|
#include <core/system/cppipc/common/message_types.hpp>
Public Member Functions | |
reply_message () | |
Default constructor. | |
bool | construct (nanosockets::zmq_msg_vector &vec) |
void | emit (nanosockets::zmq_msg_vector &vec) |
void | clear () |
Empties the message, freeing all contents. | |
void | copy_body_from (const std::string &s) |
True if bodybuf is used and body is from bodybuf. | |
Public Attributes | |
std::map< std::string, std::string > | properties |
The status of the call. | |
nanosockets::nn_msg_t | bodybuf |
Other properties. | |
char * | body |
size_t | bodylen |
The serialized contents of the reply. May point into bodybuf. | |
bool | zmqbodyused |
The length of the body. | |
The contents of the message when replying from the server to the client.
Definition at line 98 of file message_types.hpp.
bool cppipc::reply_message::construct | ( | nanosockets::zmq_msg_vector & | vec | ) |
Constructs a reply_message from a zmq_msg_vector. Will also, as a side effect, clear the zmq_msg_vector Any existing contents in the reply_message will be cleared; Returns true on success, false if the format is incorrect.
void cppipc::reply_message::emit | ( | nanosockets::zmq_msg_vector & | vec | ) |
appends the message a zmq_msg_vector from a call message. Will also as a side effect, clear the contents of this call message.
char* cppipc::reply_message::body |
When receiving, this will contain the actual contents of the body
Definition at line 124 of file message_types.hpp.