Turi Create  4.0
cppipc::reply_message Struct Reference

#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.
 

Detailed Description

The contents of the message when replying from the server to the client.

Definition at line 98 of file message_types.hpp.

Member Function Documentation

◆ construct()

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.

◆ emit()

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.

Member Data Documentation

◆ body

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.


The documentation for this struct was generated from the following file: