Template Function mrpt::serialization::mrpt_recv_from_zmq_into
Defined in File zmq_serialization.h
Function Documentation
-
template<typename ZMQ_SOCKET_TYPE>
bool mrpt::serialization::mrpt_recv_from_zmq_into(ZMQ_SOCKET_TYPE zmq_socket, mrpt::serialization::CSerializable &target_object, bool dont_wait = false, size_t *rx_obj_length_in_bytes = nullptr) Like mrpt_recv_from_zmq() but without dynamically allocating the received object, more efficient to use if the type of the received object is known in advance.
See also
mrpt_recv_from_zmq() for details on the rest of parameters.
Note
See examples of usage in https://github.com/MRPT/mrpt/tree/master/doc/mrpt-zeromq-example
- Parameters:
target_object – [in] The received object will be stored here. An exception will be raised upon type mismatch.
- Returns:
true if all was OK, false on any ZMQ error.