Macro mpstthree::create_offer_mpst_session_2 [−][src]
macro_rules! create_offer_mpst_session_2 { ($func_name : ident, $role : ident, $name : ident) => { ... }; }
Expand description
Create an offer function to recv on the second binary
session from any kind of role. Must be used with
mpstthree::meshedchannels::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 );