Table of Contents

Class DtlsConnection

Namespace
Gio.Internal
Assembly
Gio-2.0.dll
public class DtlsConnection
Inheritance
DtlsConnection
Inherited Members

Methods

Close(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_dtls_connection_close. Version: 2.48

[Version("2.48")]
public static extern bool Close(IntPtr conn, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

CloseAsync(IntPtr, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_dtls_connection_close_async. Version: 2.48

[Version("2.48")]
public static extern void CloseAsync(IntPtr conn, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

CloseFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_dtls_connection_close_finish. Version: 2.48

[Version("2.48")]
public static extern bool CloseFinish(IntPtr conn, IntPtr result, out ErrorOwnedHandle error)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

EmitAcceptCertificate(IntPtr, IntPtr, TlsCertificateFlags)

Calls native method g_dtls_connection_emit_accept_certificate. Version: 2.48

[Version("2.48")]
public static extern bool EmitAcceptCertificate(IntPtr conn, IntPtr peerCert, TlsCertificateFlags errors)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

peerCert IntPtr

Transfer ownership: None Nullable: False

errors TlsCertificateFlags

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetCertificate(IntPtr)

Calls native method g_dtls_connection_get_certificate. Version: 2.48

[Version("2.48")]
public static extern IntPtr GetCertificate(IntPtr conn)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetChannelBindingData(IntPtr, TlsChannelBindingType, out byte[], out ErrorOwnedHandle)

Calls native method g_dtls_connection_get_channel_binding_data. Version: 2.66

[Version("2.66")]
public static extern bool GetChannelBindingData(IntPtr conn, TlsChannelBindingType type, out byte[] data, out ErrorOwnedHandle error)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

type TlsChannelBindingType

Transfer ownership: None Nullable: False

data byte[]

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

GetCiphersuiteName(IntPtr)

Calls native method g_dtls_connection_get_ciphersuite_name. Version: 2.70

[Version("2.70")]
public static extern NullableUtf8StringOwnedHandle GetCiphersuiteName(IntPtr conn)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

GetDatabase(IntPtr)

Calls native method g_dtls_connection_get_database. Version: 2.48

[Version("2.48")]
public static extern IntPtr GetDatabase(IntPtr conn)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetGType()

Calls native function g_dtls_connection_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetInteraction(IntPtr)

Calls native method g_dtls_connection_get_interaction. Version: 2.48

[Version("2.48")]
public static extern IntPtr GetInteraction(IntPtr conn)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetNegotiatedProtocol(IntPtr)

Calls native method g_dtls_connection_get_negotiated_protocol. Version: 2.60

[Version("2.60")]
public static extern NullableUtf8StringUnownedHandle GetNegotiatedProtocol(IntPtr conn)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetPeerCertificate(IntPtr)

Calls native method g_dtls_connection_get_peer_certificate. Version: 2.48

[Version("2.48")]
public static extern IntPtr GetPeerCertificate(IntPtr conn)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetPeerCertificateErrors(IntPtr)

Calls native method g_dtls_connection_get_peer_certificate_errors. Version: 2.48

[Version("2.48")]
public static extern TlsCertificateFlags GetPeerCertificateErrors(IntPtr conn)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

Returns

TlsCertificateFlags

Transfer ownership: None Nullable: False

GetProtocolVersion(IntPtr)

Calls native method g_dtls_connection_get_protocol_version. Version: 2.70

[Version("2.70")]
public static extern TlsProtocolVersion GetProtocolVersion(IntPtr conn)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

Returns

TlsProtocolVersion

Transfer ownership: None Nullable: False

GetRehandshakeMode(IntPtr)

Calls native method g_dtls_connection_get_rehandshake_mode. Version: 2.48

[Version("2.48")]
public static extern TlsRehandshakeMode GetRehandshakeMode(IntPtr conn)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

Returns

TlsRehandshakeMode

Transfer ownership: None Nullable: False

GetRequireCloseNotify(IntPtr)

Calls native method g_dtls_connection_get_require_close_notify. Version: 2.48

[Version("2.48")]
public static extern bool GetRequireCloseNotify(IntPtr conn)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Handshake(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_dtls_connection_handshake. Version: 2.48

[Version("2.48")]
public static extern bool Handshake(IntPtr conn, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

HandshakeAsync(IntPtr, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_dtls_connection_handshake_async. Version: 2.48

[Version("2.48")]
public static extern void HandshakeAsync(IntPtr conn, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

HandshakeFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_dtls_connection_handshake_finish. Version: 2.48

[Version("2.48")]
public static extern bool HandshakeFinish(IntPtr conn, IntPtr result, out ErrorOwnedHandle error)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SetAdvertisedProtocols(IntPtr, Utf8StringArrayNullTerminatedHandle)

Calls native method g_dtls_connection_set_advertised_protocols. Version: 2.60

[Version("2.60")]
public static extern void SetAdvertisedProtocols(IntPtr conn, Utf8StringArrayNullTerminatedHandle protocols)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

protocols Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

SetCertificate(IntPtr, IntPtr)

Calls native method g_dtls_connection_set_certificate. Version: 2.48

[Version("2.48")]
public static extern void SetCertificate(IntPtr conn, IntPtr certificate)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

certificate IntPtr

Transfer ownership: None Nullable: False

SetDatabase(IntPtr, IntPtr)

Calls native method g_dtls_connection_set_database. Version: 2.48

[Version("2.48")]
public static extern void SetDatabase(IntPtr conn, IntPtr database)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

database IntPtr

Transfer ownership: None Nullable: True

SetInteraction(IntPtr, IntPtr)

Calls native method g_dtls_connection_set_interaction. Version: 2.48

[Version("2.48")]
public static extern void SetInteraction(IntPtr conn, IntPtr interaction)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

interaction IntPtr

Transfer ownership: None Nullable: True

SetRehandshakeMode(IntPtr, TlsRehandshakeMode)

Calls native method g_dtls_connection_set_rehandshake_mode. Version: 2.48

[Version("2.48")]
public static extern void SetRehandshakeMode(IntPtr conn, TlsRehandshakeMode mode)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

mode TlsRehandshakeMode

Transfer ownership: None Nullable: False

SetRequireCloseNotify(IntPtr, bool)

Calls native method g_dtls_connection_set_require_close_notify. Version: 2.48

[Version("2.48")]
public static extern void SetRequireCloseNotify(IntPtr conn, bool requireCloseNotify)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

requireCloseNotify bool

Transfer ownership: None Nullable: False

Shutdown(IntPtr, bool, bool, IntPtr, out ErrorOwnedHandle)

Calls native method g_dtls_connection_shutdown. Version: 2.48

[Version("2.48")]
public static extern bool Shutdown(IntPtr conn, bool shutdownRead, bool shutdownWrite, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

shutdownRead bool

Transfer ownership: None Nullable: False

shutdownWrite bool

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

ShutdownAsync(IntPtr, bool, bool, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_dtls_connection_shutdown_async. Version: 2.48

[Version("2.48")]
public static extern void ShutdownAsync(IntPtr conn, bool shutdownRead, bool shutdownWrite, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

shutdownRead bool

Transfer ownership: None Nullable: False

shutdownWrite bool

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

ShutdownFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_dtls_connection_shutdown_finish. Version: 2.48

[Version("2.48")]
public static extern bool ShutdownFinish(IntPtr conn, IntPtr result, out ErrorOwnedHandle error)

Parameters

conn IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False