gi-gio-2.0.25: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Interfaces.DtlsServerConnection

Contents

Description

tDtlsServerConnection is the server-side subclass of tDtlsConnection, representing a server-side DTLS connection.

Since: 2.48

Synopsis

Exported types

newtype DtlsServerConnection Source #

Memory-managed wrapper type.

Constructors

DtlsServerConnection (ManagedPtr DtlsServerConnection) 
Instances
Eq DtlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.DtlsServerConnection

GObject DtlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.DtlsServerConnection

Methods

gobjectType :: IO GType

IsGValue DtlsServerConnection Source #

Convert DtlsServerConnection to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gio.Interfaces.DtlsServerConnection

Methods

toGValue :: DtlsServerConnection -> IO GValue

fromGValue :: GValue -> IO DtlsServerConnection

HasParentTypes DtlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.DtlsServerConnection

type ParentTypes DtlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.DtlsServerConnection

type ParentTypes DtlsServerConnection = DatagramBased ': (DtlsConnection ': (Object ': ([] :: [Type])))

noDtlsServerConnection :: Maybe DtlsServerConnection Source #

A convenience alias for Nothing :: Maybe DtlsServerConnection.

class (GObject o, IsDescendantOf DtlsServerConnection o) => IsDtlsServerConnection o Source #

Type class for types which can be safely cast to DtlsServerConnection, for instance with toDtlsServerConnection.

Instances
(GObject o, IsDescendantOf DtlsServerConnection o) => IsDtlsServerConnection o Source # 
Instance details

Defined in GI.Gio.Interfaces.DtlsServerConnection

toDtlsServerConnection :: (MonadIO m, IsDtlsServerConnection o) => o -> m DtlsServerConnection Source #

Cast to DtlsServerConnection, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

new

dtlsServerConnectionNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsDatagramBased a, IsTlsCertificate b) 
=> a

baseSocket: the tDatagramBased to wrap

-> Maybe b

certificate: the default server certificate, or Nothing

-> m DtlsServerConnection

Returns: the new tDtlsServerConnection, or Nothing on error (Can throw GError)

Creates a new tDtlsServerConnection wrapping baseSocket.

Since: 2.48

Properties

authenticationMode

The tTlsAuthenticationMode for the server. This can be changed before calling dtlsConnectionHandshake if you want to rehandshake with a different mode from the initial handshake.

Since: 2.48

constructDtlsServerConnectionAuthenticationMode :: IsDtlsServerConnection o => TlsAuthenticationMode -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “authentication-mode” property. This is rarely needed directly, but it is used by new.

getDtlsServerConnectionAuthenticationMode :: (MonadIO m, IsDtlsServerConnection o) => o -> m TlsAuthenticationMode Source #

Get the value of the “authentication-mode” property. When overloading is enabled, this is equivalent to

get dtlsServerConnection #authenticationMode

setDtlsServerConnectionAuthenticationMode :: (MonadIO m, IsDtlsServerConnection o) => o -> TlsAuthenticationMode -> m () Source #

Set the value of the “authentication-mode” property. When overloading is enabled, this is equivalent to

set dtlsServerConnection [ #authenticationMode := value ]