C# 클래스 Brunet.Transport.NetmaskTAAuthorizer

상속: TAAuthorizer
파일 보기 프로젝트 열기: johnynek/brunet 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_bit_c int
_nw_bytes byte[]
_result_on_match TAAuthorizer.Decision
_result_on_mismatch TAAuthorizer.Decision

공개 메소드들

메소드 설명
Authorize ( TransportAddress a ) : TAAuthorizer.Decision
NetmaskTAAuthorizer ( IPAddress nw, int bit_c, TAAuthorizer on_match, TAAuthorizer on_mismatch ) : System

보호된 메소드들

메소드 설명
FirstBitsMatch ( byte a, byte b, int count ) : bool

메소드 상세

Authorize() 공개 메소드

public Authorize ( TransportAddress a ) : TAAuthorizer.Decision
a TransportAddress
리턴 TAAuthorizer.Decision

FirstBitsMatch() 보호된 메소드

protected FirstBitsMatch ( byte a, byte b, int count ) : bool
a byte
b byte
count int
리턴 bool

NetmaskTAAuthorizer() 공개 메소드

public NetmaskTAAuthorizer ( IPAddress nw, int bit_c, TAAuthorizer on_match, TAAuthorizer on_mismatch ) : System
nw System.Net.IPAddress
bit_c int
on_match TAAuthorizer
on_mismatch TAAuthorizer
리턴 System

프로퍼티 상세

_bit_c 보호되어 있는 프로퍼티

protected int _bit_c
리턴 int

_nw_bytes 보호되어 있는 프로퍼티

protected byte[] _nw_bytes
리턴 byte[]

_result_on_match 보호되어 있는 프로퍼티

protected TAAuthorizer.Decision _result_on_match
리턴 TAAuthorizer.Decision

_result_on_mismatch 보호되어 있는 프로퍼티

protected TAAuthorizer.Decision _result_on_mismatch
리턴 TAAuthorizer.Decision