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