C# Class Brunet.Transport.RandomTAAuthorizer

Inheritance: TAAuthorizer
Show file Open project: johnynek/brunet

Protected Properties

Property Type Description
_deny_list System.Collections.ArrayList
_deny_prob double
_rand System.Random

Public Methods

Method Description
Authorize ( TransportAddress a ) : TAAuthorizer.Decision
RandomTAAuthorizer ( double deny_prob ) : System

Method Details

Authorize() public method

public Authorize ( TransportAddress a ) : TAAuthorizer.Decision
a TransportAddress
return TAAuthorizer.Decision

RandomTAAuthorizer() public method

public RandomTAAuthorizer ( double deny_prob ) : System
deny_prob double
return System

Property Details

_deny_list protected property

protected ArrayList,System.Collections _deny_list
return System.Collections.ArrayList

_deny_prob protected property

protected double _deny_prob
return double

_rand protected static property

protected static Random,System _rand
return System.Random