Class DtlsConnection
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
IntPtrTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
ioPriority
intTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
result
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
peerCert
IntPtrTransfer ownership: None Nullable: False
errors
TlsCertificateFlagsTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
type
TlsChannelBindingTypeTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
ioPriority
intTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
result
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
protocols
Utf8StringArrayNullTerminatedHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
certificate
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
database
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
interaction
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
mode
TlsRehandshakeModeTransfer 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
IntPtrTransfer ownership: None Nullable: False
requireCloseNotify
boolTransfer 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
IntPtrTransfer ownership: None Nullable: False
shutdownRead
boolTransfer ownership: None Nullable: False
shutdownWrite
boolTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
shutdownRead
boolTransfer ownership: None Nullable: False
shutdownWrite
boolTransfer ownership: None Nullable: False
ioPriority
intTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
result
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False