C# 클래스 Simulator.IpPool

Tracks the pool of IP addresses used by the simulator.
파일 보기 프로젝트 열기: Microsoft/StopGuessing 1 사용 예제들

공개 메소드들

메소드 설명
GenerateAttackersIps ( ) : void

Generate a set of IP addresses to be owned by attackers. Must be called after all benign users accounts have been created so as to create the desired level of overlap between those benign addresses and the malicious ones.

GetIpAddressDebugInfo ( IPAddress address ) : IpAddressDebugInfo
GetNewRandomBenignIp ( ) : IPAddress

Get a new IP address for use in a benign request

GetRandomMaliciousIp ( ) : IPAddress

Generate a random malicious IP address

IpPool ( ExperimentalConfiguration experimentalConfiguration ) : System

메소드 상세

GenerateAttackersIps() 공개 메소드

Generate a set of IP addresses to be owned by attackers. Must be called after all benign users accounts have been created so as to create the desired level of overlap between those benign addresses and the malicious ones.
public GenerateAttackersIps ( ) : void
리턴 void

GetIpAddressDebugInfo() 공개 메소드

public GetIpAddressDebugInfo ( IPAddress address ) : IpAddressDebugInfo
address System.Net.IPAddress
리턴 IpAddressDebugInfo

GetNewRandomBenignIp() 공개 메소드

Get a new IP address for use in a benign request
public GetNewRandomBenignIp ( ) : IPAddress
리턴 System.Net.IPAddress

GetRandomMaliciousIp() 공개 메소드

Generate a random malicious IP address
public GetRandomMaliciousIp ( ) : IPAddress
리턴 System.Net.IPAddress

IpPool() 공개 메소드

public IpPool ( ExperimentalConfiguration experimentalConfiguration ) : System
experimentalConfiguration ExperimentalConfiguration
리턴 System