C# Class MpcLib.DistributedSystem.Protocol

Show file Open project: mahdiz/mpclib Class Usage Examples

Public Properties

Property Type Description
NumParties int

Public Methods

Method Description
Broadcast ( Msg msg, int delay ) : void
ExecuteSubProtocol ( Protocol subProtocol ) : void
ExecuteSubProtocols ( IEnumerable subProtocols ) : void
HandleMessage ( int fromId, Msg msg ) : void
Multicast ( Msg msg, IEnumerable toIds, int delay ) : void
Protocol ( Party me, SortedSet partyIds, ulong protocolId ) : System
Send ( ICollection msgs, ICollection recipients, int delay ) : void
Send ( Protocol protocol, ICollection msgs, int delay ) : void

Sends the i-th message to the i-th party.

Send ( int toId, Msg msg, int delay ) : void
Start ( ) : void
Teardown ( ) : void

Method Details

Broadcast() public method

public Broadcast ( Msg msg, int delay ) : void
msg Msg
delay int
return void

ExecuteSubProtocol() public method

public ExecuteSubProtocol ( Protocol subProtocol ) : void
subProtocol Protocol
return void

ExecuteSubProtocols() public method

public ExecuteSubProtocols ( IEnumerable subProtocols ) : void
subProtocols IEnumerable
return void

HandleMessage() public abstract method

public abstract HandleMessage ( int fromId, Msg msg ) : void
fromId int
msg Msg
return void

Multicast() public method

public Multicast ( Msg msg, IEnumerable toIds, int delay ) : void
msg Msg
toIds IEnumerable
delay int
return void

Protocol() public method

public Protocol ( Party me, SortedSet partyIds, ulong protocolId ) : System
me Party
partyIds SortedSet
protocolId ulong
return System

Send() public method

public Send ( ICollection msgs, ICollection recipients, int delay ) : void
msgs ICollection
recipients ICollection
delay int
return void

Send() public method

Sends the i-th message to the i-th party.
public Send ( Protocol protocol, ICollection msgs, int delay ) : void
protocol Protocol
msgs ICollection
delay int
return void

Send() public method

public Send ( int toId, Msg msg, int delay ) : void
toId int
msg Msg
delay int
return void

Start() public abstract method

public abstract Start ( ) : void
return void

Teardown() public method

public Teardown ( ) : void
return void

Property Details

NumParties public property

public int NumParties
return int