A special message builder that allows to wrap a message into an envelope.
This function creates an instance of a specified message type and creates a chain of builders that envelope this instance into an envelope and send the enveloped message as ordinary or delayed/periodic message.
so_5::mbox_t mb1 = ...;
msg_ns::make<my_message>(...)
.envelope<my_envelope>(...)
.send_to(mb1);
so_5::mchain_t ch1 = ...;
msg_ns::make<my_message>(...)
.envelope<my_envelope>(...)
.send_to(ch1);
so_5::agent_t & a1 = ...;
msg_ns::make<my_message>(...)
.envelope<my_envelope>(...)
.send_to(a1);
so_5::mbox_t mb1 = ...;
msg_ns::make<my_message>(...)
.envelope<my_envelope>(...)
.send_delayed_to(mb1, 10s);
so_5::mchain_t ch1 = ...;
msg_ns::make<my_message>(...)
.envelope<my_envelope>(...)
.send_delayed_to(ch1, 10s);
so_5::agent_t & a1 = ...;
msg_ns::make<my_message>(...)
.envelope<my_envelope>(...)
.send_delayed_to(a1, 10s);
so_5::mbox_t mb1 = ...;
auto timer_id = msg_ns::make<my_message>(...)
.envelope<my_envelope>(...)
.send_periodic_to(mb1, 10s, 30s);
so_5::mchain_t ch1 = ...;
auto timer_id = msg_ns::make<my_message>(...)
.envelope<my_envelope>(...)
.send_periodic_to(ch1, 10s, 30s);
so_5::agent_t & a1 = ...;
auto timer_id = msg_ns::make<my_message>(...)
.envelope<my_envelope>(...)
.send_periodic_to(a1, 10s, 30s);