public static Send ( int fromId, int toId, ulong protocolId, |
||
fromId | int | |
toId | int | |
protocolId | ulong | |
msg | ||
delay | int | |
return | void |
/// <summary> /// Sends the i-th message to the i-th party. /// </summary> public void Send(Protocol protocol, ICollection <Msg> msgs, int delay = 0) { Debug.Assert(NetSimulator.PartyCount == msgs.Count, "Not enough recipients/messages to send!"); NetSimulator.Send(Id, protocol.ProtocolId, msgs, delay); }
public void Send(Protocol protocol, int toId, Msg msg, int delay = 0) { NetSimulator.Send(Id, toId, protocol.ProtocolId, msg, delay); }