C# Class MpcLib.DistributedSystem.NetSimulator

Represents a network simulator.
Afficher le fichier Open project: mahdiz/mpclib Class Usage Examples

Méthodes publiques

Свойство Type Description
SentByteCount System.Numerics.BigInteger
SentMessageCount System.Numerics.BigInteger
idGen int

Méthodes publiques

Méthode Description
Broadcast ( int fromId, ulong protocolId, Msg msg, int delay ) : void
FakeMulticast ( int idCount, int bytes ) : void
FakeSend ( int bytes ) : void
GetParty ( int id ) : Party
Init ( int seed ) : void
Loopback ( int id, ulong protocolId, Msg msg ) : void
Multicast ( int fromId, ulong protocolId, IEnumerable toIds, Msg msg, int delay ) : void
RegisterParty ( Party p ) : void
Reset ( ) : void
Run ( ) : void
Send ( int fromId, int toId, ulong protocolId, Msg msg, int delay ) : void
Send ( int fromId, ulong protocolId, ICollection msgs, ICollection recipients, int delay ) : void
Send ( int fromId, ulong protocolId, ICollection msgs, int delay ) : void

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

Method Details

Broadcast() public static méthode

public static Broadcast ( int fromId, ulong protocolId, Msg msg, int delay ) : void
fromId int
protocolId ulong
msg Msg
delay int
Résultat void

FakeMulticast() public static méthode

public static FakeMulticast ( int idCount, int bytes ) : void
idCount int
bytes int
Résultat void

FakeSend() public static méthode

public static FakeSend ( int bytes ) : void
bytes int
Résultat void

GetParty() public static méthode

public static GetParty ( int id ) : Party
id int
Résultat Party

Init() public static méthode

public static Init ( int seed ) : void
seed int
Résultat void

Loopback() public static méthode

public static Loopback ( int id, ulong protocolId, Msg msg ) : void
id int
protocolId ulong
msg Msg
Résultat void

Multicast() public static méthode

public static Multicast ( int fromId, ulong protocolId, IEnumerable toIds, Msg msg, int delay ) : void
fromId int
protocolId ulong
toIds IEnumerable
msg Msg
delay int
Résultat void

RegisterParty() public static méthode

public static RegisterParty ( Party p ) : void
p Party
Résultat void

Reset() public static méthode

public static Reset ( ) : void
Résultat void

Run() public static méthode

public static Run ( ) : void
Résultat void

Send() public static méthode

public static Send ( int fromId, int toId, ulong protocolId, Msg msg, int delay ) : void
fromId int
toId int
protocolId ulong
msg Msg
delay int
Résultat void

Send() public static méthode

public static Send ( int fromId, ulong protocolId, ICollection msgs, ICollection recipients, int delay ) : void
fromId int
protocolId ulong
msgs ICollection
recipients ICollection
delay int
Résultat void

Send() public static méthode

Sends the i-th message to the i-th party.
public static Send ( int fromId, ulong protocolId, ICollection msgs, int delay ) : void
fromId int
protocolId ulong
msgs ICollection
delay int
Résultat void

Property Details

SentByteCount public_oe static_oe property

Total number of bytes sent by all parties in the network.
public static BigInteger,System.Numerics SentByteCount
Résultat System.Numerics.BigInteger

SentMessageCount public_oe static_oe property

Total number of messages sent by all parties in the network.
public static BigInteger,System.Numerics SentMessageCount
Résultat System.Numerics.BigInteger

idGen public_oe static_oe property

public static int idGen
Résultat int