Macro mpstthree::create_offer_mpst_session_1

source ·
macro_rules! create_offer_mpst_session_1 {
    ($func_name:ident, $role:ident, $name:ident) => { ... };
}
Available on crate feature macros_simple only.
Expand description

Create an offer function to recv on the first 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_name, create_normal_role, create_offer_mpst_session_1,
};

create_normal_role!(RoleA, RoleADual);
create_normal_role!(RoleC, RoleCDual);
create_normal_name!(NameC);
create_broadcast_role!(RoleAlltoA, RoleAtoAll);

create_offer_mpst_session_1!(offer_mpst_session_c_to_a, RoleAlltoA, NameC);

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