C# Класс Brunet.Security.Dtls.DtlsAssociation

A Dtls filter for use with generic transports.
Наследование: Brunet.Security.SecurityAssociation, IIdentifierPair
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
PType Brunet.Util.PType

Защищенные свойства (Protected)

Свойство Тип Описание
_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