5#ifndef YAMICPP_OUTGOING_MESSAGE_H_INCLUDED
6#define YAMICPP_OUTGOING_MESSAGE_H_INCLUDED
8#include "message_state.h"
9#include <yami4-core/dll.h>
19struct outgoing_message_info;
20class outgoing_message_manager;
46 void reset(details::outgoing_message_manager & manager,
47 details::outgoing_message_info & info);
49 void disown_info_object();
67 std::size_t & total_byte_count)
const;
154 details::outgoing_message_manager * manager_;
155 details::outgoing_message_info * info_;
Outgoing message.
Definition: outgoing_message.h:33
bool wait_for_completion(std::size_t relative_timeout) const
Waits for the message roundtrip or until timeout expires.
outgoing_message_id get_message_id() const
Returns the internal message id.
long long outgoing_message_id
Outgoing message identifier type.
Definition: outgoing_message.h:37
const std::vector< char > & get_raw_reply() const
Provides access to the reply content.
void wait_for_completion() const
Waits for the full message roundtrip.
void wait_for_transmission() const
Waits for the transmission to finish.
bool wait_for_transmission(std::size_t relative_timeout) const
Waits for the transmission to finish or until timeout expires.
outgoing_message()
Constructor.
const parameters & get_reply() const
Provides access to the reply content.
parameters * extract_reply()
Extracts the reply content.
const parameters & get_header() const
Provides access to the reply header.
message_state get_state() const
Returns the state of this message.
message_state get_state(std::size_t &sent_bytes, std::size_t &total_byte_count) const
Returns the state of this message.
const std::string & get_exception_msg() const
Returns the exception message.
Collection of message parameters.
Definition: parameters.h:62
Namespace devoted to everything related to YAMI4.
Definition: agent.h:21
message_state
Outgoing message state.
Definition: message_state.h:13