C# 클래스 Brunet.Security.Dtls.DtlsAssociation

A Dtls filter for use with generic transports.
상속: Brunet.Security.SecurityAssociation, IIdentifierPair
파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
PType Brunet.Util.PType

보호된 프로퍼티들

프로퍼티 타입 설명
_buffer byte[]
_buffer_sync object
_client bool
_fe FuzzyEvent
_fe_lock int
_ip Brunet.Messaging.IdentifierPair
_read OpenSSL.Core.BIO
_ssl Ssl
_write OpenSSL.Core.BIO

공개 메소드들

메소드 설명
DtlsAssociation ( ISender sender, CertificateHandler ch, PType ptype, Ssl ssl, bool client ) : Brunet.Messaging

Create a DtlsFilter.

Handshake ( ) : void

Start the session earlier than waiting for a packet to be sent. Not doing this may increase the amount of lost packets.

Renegotiate ( ) : void

The session has gone on long enough that it is time for the peers to start using a new set of symmetric keys.

ToString ( ) : string

보호된 메소드들

메소드 설명
HandleIncoming ( MemBlock data, MemBlock &app_data ) : bool
HandleOutgoing ( ICopyable app_data, ICopyable &data ) : bool
HandleWouldBlock ( ) : void

Blocking may occur for two reasons, no data available or the handshake isn't complete. If the handshake isn't complete, the timer will be set to >= 0, at 0, we need to call handshake to continue, if it is greater than 0, we need to schedule a timer to call handshake later.

RemoteCertificateValidation ( object sender, Mono.Security.X509.X509Certificate cert, Mono.Security.X509.X509Chain chain, int depth, VerifyResult result ) : bool

Override to review certificate validation decisions.

비공개 메소드들

메소드 설명
HandleWouldBlock ( System.DateTime now ) : void

Timercall back for internal ssl timeout.

메소드 상세

DtlsAssociation() 공개 메소드

Create a DtlsFilter.
public DtlsAssociation ( ISender sender, CertificateHandler ch, PType ptype, Ssl ssl, bool client ) : Brunet.Messaging
sender ISender
ch Brunet.Security.CertificateHandler
ptype Brunet.Util.PType
ssl Ssl
client bool Use client initialization parameters.
리턴 Brunet.Messaging

HandleIncoming() 보호된 메소드

protected HandleIncoming ( MemBlock data, MemBlock &app_data ) : bool
data Brunet.Util.MemBlock
app_data Brunet.Util.MemBlock
리턴 bool

HandleOutgoing() 보호된 메소드

protected HandleOutgoing ( ICopyable app_data, ICopyable &data ) : bool
app_data ICopyable
data ICopyable
리턴 bool

HandleWouldBlock() 보호된 메소드

Blocking may occur for two reasons, no data available or the handshake isn't complete. If the handshake isn't complete, the timer will be set to >= 0, at 0, we need to call handshake to continue, if it is greater than 0, we need to schedule a timer to call handshake later.
protected HandleWouldBlock ( ) : void
리턴 void

Handshake() 공개 메소드

Start the session earlier than waiting for a packet to be sent. Not doing this may increase the amount of lost packets.
public Handshake ( ) : void
리턴 void

RemoteCertificateValidation() 보호된 메소드

Override to review certificate validation decisions.
protected RemoteCertificateValidation ( object sender, Mono.Security.X509.X509Certificate cert, Mono.Security.X509.X509Chain chain, int depth, VerifyResult result ) : bool
sender object
cert Mono.Security.X509.X509Certificate
chain Mono.Security.X509.X509Chain
depth int
result VerifyResult
리턴 bool

Renegotiate() 공개 메소드

The session has gone on long enough that it is time for the peers to start using a new set of symmetric keys.
public Renegotiate ( ) : void
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

PType 공개적으로 프로퍼티

public PType,Brunet.Util PType
리턴 Brunet.Util.PType

_buffer 보호되어 있는 프로퍼티

protected byte[] _buffer
리턴 byte[]

_buffer_sync 보호되어 있는 프로퍼티

protected object _buffer_sync
리턴 object

_client 보호되어 있는 프로퍼티

protected bool _client
리턴 bool

_fe 보호되어 있는 프로퍼티

protected FuzzyEvent _fe
리턴 FuzzyEvent

_fe_lock 보호되어 있는 프로퍼티

protected int _fe_lock
리턴 int

_ip 보호되어 있는 프로퍼티

protected IdentifierPair,Brunet.Messaging _ip
리턴 Brunet.Messaging.IdentifierPair

_read 보호되어 있는 프로퍼티

protected BIO,OpenSSL.Core _read
리턴 OpenSSL.Core.BIO

_ssl 보호되어 있는 프로퍼티

protected Ssl _ssl
리턴 Ssl

_write 보호되어 있는 프로퍼티

protected BIO,OpenSSL.Core _write
리턴 OpenSSL.Core.BIO