Macro mpstthree::create_offer_mpst_session_2[][src]

macro_rules! create_offer_mpst_session_2 {
    ($func_name : ident, $role : ident, $name : ident) => { ... };
}
This is supported on crate feature macros_simple only.
Expand description

Create an offer function to recv on the second binary session from any kind of role. Must be used with MeshedChannels.

Arguments

  • The name of the new offer function
  • The name of the dual of the broadcasting sender
  • The name of the receiver

Example

use mpstthree::functionmpst::OfferMpst;
use mpstthree::meshedchannels::MeshedChannels;
use mpstthree::{create_broadcast_role, create_normal_role, create_offer_mpst_session_2};

create_normal_role!(RoleA, RoleADual);
create_normal_role!(RoleC, RoleCDual);
create_broadcast_role!(RoleAlltoC, RoleCtoAll);

create_offer_mpst_session_2!(offer_mpst_session_a_to_c, RoleAlltoC, RoleA);

This macro is available only if MultiCrusty is built with the "macros_simple" feature.