C# 클래스 MpcLib.DistributedSystem.NetSimulator

Represents a network simulator.
파일 보기 프로젝트 열기: mahdiz/mpclib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
SentByteCount System.Numerics.BigInteger
SentMessageCount System.Numerics.BigInteger
idGen int

공개 메소드들

메소드 설명
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.

메소드 상세

Broadcast() 공개 정적인 메소드

public static Broadcast ( int fromId, ulong protocolId, Msg msg, int delay ) : void
fromId int
protocolId ulong
msg Msg
delay int
리턴 void

FakeMulticast() 공개 정적인 메소드

public static FakeMulticast ( int idCount, int bytes ) : void
idCount int
bytes int
리턴 void

FakeSend() 공개 정적인 메소드

public static FakeSend ( int bytes ) : void
bytes int
리턴 void

GetParty() 공개 정적인 메소드

public static GetParty ( int id ) : Party
id int
리턴 Party

Init() 공개 정적인 메소드

public static Init ( int seed ) : void
seed int
리턴 void

Loopback() 공개 정적인 메소드

public static Loopback ( int id, ulong protocolId, Msg msg ) : void
id int
protocolId ulong
msg Msg
리턴 void

Multicast() 공개 정적인 메소드

public static Multicast ( int fromId, ulong protocolId, IEnumerable toIds, Msg msg, int delay ) : void
fromId int
protocolId ulong
toIds IEnumerable
msg Msg
delay int
리턴 void

RegisterParty() 공개 정적인 메소드

public static RegisterParty ( Party p ) : void
p Party
리턴 void

Reset() 공개 정적인 메소드

public static Reset ( ) : void
리턴 void

Run() 공개 정적인 메소드

public static Run ( ) : void
리턴 void

Send() 공개 정적인 메소드

public static Send ( int fromId, int toId, ulong protocolId, Msg msg, int delay ) : void
fromId int
toId int
protocolId ulong
msg Msg
delay int
리턴 void

Send() 공개 정적인 메소드

public static Send ( int fromId, ulong protocolId, ICollection msgs, ICollection recipients, int delay ) : void
fromId int
protocolId ulong
msgs ICollection
recipients ICollection
delay int
리턴 void

Send() 공개 정적인 메소드

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
리턴 void

프로퍼티 상세

SentByteCount 공개적으로 정적으로 프로퍼티

Total number of bytes sent by all parties in the network.
public static BigInteger,System.Numerics SentByteCount
리턴 System.Numerics.BigInteger

SentMessageCount 공개적으로 정적으로 프로퍼티

Total number of messages sent by all parties in the network.
public static BigInteger,System.Numerics SentMessageCount
리턴 System.Numerics.BigInteger

idGen 공개적으로 정적으로 프로퍼티

public static int idGen
리턴 int