C# Класс Simulator.IpPool

Tracks the pool of IP addresses used by the simulator.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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