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