Represents an abstract network party.
Пример #1
0
 public Protocol(Party me, SortedSet<int> partyIds, ulong protocolId)
 {
     Me = me;
     PartyIds = partyIds;
     NumParties = PartyIds.Count;
     IsCompleted = false;
     ProtocolId = protocolId;
 }
Пример #2
0
 public SynchronizationProtocol(Party me, SortedSet<int> partyIds, IEnumerable<Protocol> protocols, ulong protocolId)
     : base(me, partyIds, protocolId)
 {
     Protocols = protocols;
 }
Пример #3
0
 public LoopbackProtocol(Party me, object result, ulong protocolId)
     : base(me, new SortedSet<int>(), protocolId)
 {
     IsCompleted = true;
     RawResult = result;
 }
Пример #4
0
 public NopProtocol(Party me, ulong protocolId, int nopCount)
     : base(me, new SortedSet<int>(), protocolId)
 {
     NopCount = nopCount;
 }
Пример #5
0
 public static void RegisterParty(Party p)
 {
     parties[p.Id] = p;
 }