C# Класс NetworkCommsDotNet.Tools.DOSProtection

NetworkComms.Net class used for providing Denial Of Service (DOS) protection features. If enabled, malformed data events and connection initialises are tracked. If above set thresholds IPAddresses are banned.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DOSProtection ( ) : System

Initialise a new instance of DOS protection.

LogConnectionInitialise ( IPAddress remoteIPAddress ) : bool

Log a connection initialisation for the provided remote IPAddress.

LogMalformedData ( IPAddress remoteIPAddress ) : bool

Log a malformed data event for the provided remote IPAddress.

RemoteIPAddressBanned ( IPAddress remoteIPAddress ) : bool

Returns true if the provided IPAddress has been banned due to DOSProtection.

Описание методов

DOSProtection() публичный Метод

Initialise a new instance of DOS protection.
public DOSProtection ( ) : System
Результат System

LogConnectionInitialise() публичный Метод

Log a connection initialisation for the provided remote IPAddress.
public LogConnectionInitialise ( IPAddress remoteIPAddress ) : bool
remoteIPAddress IPAddress
Результат bool

LogMalformedData() публичный Метод

Log a malformed data event for the provided remote IPAddress.
public LogMalformedData ( IPAddress remoteIPAddress ) : bool
remoteIPAddress IPAddress
Результат bool

RemoteIPAddressBanned() публичный Метод

Returns true if the provided IPAddress has been banned due to DOSProtection.
public RemoteIPAddressBanned ( IPAddress remoteIPAddress ) : bool
remoteIPAddress IPAddress The IPAddress to check
Результат bool