Send() публичный статический Метод

public static Send ( int fromId, int toId, ulong protocolId, Msg msg, int delay ) : void
fromId int
toId int
protocolId ulong
msg Msg
delay int
Результат void
Пример #1
0
 /// <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);
 }
Пример #2
0
 public void Send(Protocol protocol, int toId, Msg msg, int delay = 0)
 {
     NetSimulator.Send(Id, toId, protocol.ProtocolId, msg, delay);
 }