C# Class 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.
Afficher le fichier Open project: MarcFletcher/NetworkComms.Net Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

DOSProtection() public méthode

Initialise a new instance of DOS protection.
public DOSProtection ( ) : System
Résultat System

LogConnectionInitialise() public méthode

Log a connection initialisation for the provided remote IPAddress.
public LogConnectionInitialise ( IPAddress remoteIPAddress ) : bool
remoteIPAddress IPAddress
Résultat bool

LogMalformedData() public méthode

Log a malformed data event for the provided remote IPAddress.
public LogMalformedData ( IPAddress remoteIPAddress ) : bool
remoteIPAddress IPAddress
Résultat bool

RemoteIPAddressBanned() public méthode

Returns true if the provided IPAddress has been banned due to DOSProtection.
public RemoteIPAddressBanned ( IPAddress remoteIPAddress ) : bool
remoteIPAddress IPAddress The IPAddress to check
Résultat bool