Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
DtlsServerConnection
is the server-side subclass of DtlsConnection
,
representing a server-side DTLS connection.
Since: 2.48
Synopsis
- newtype DtlsServerConnection = DtlsServerConnection (ManagedPtr DtlsServerConnection)
- class (GObject o, IsDescendantOf DtlsServerConnection o) => IsDtlsServerConnection o
- toDtlsServerConnection :: (MonadIO m, IsDtlsServerConnection o) => o -> m DtlsServerConnection
- dtlsServerConnectionNew :: (HasCallStack, MonadIO m, IsDatagramBased a, IsTlsCertificate b) => a -> Maybe b -> m DtlsServerConnection
- constructDtlsServerConnectionAuthenticationMode :: (IsDtlsServerConnection o, MonadIO m) => TlsAuthenticationMode -> m (GValueConstruct o)
- getDtlsServerConnectionAuthenticationMode :: (MonadIO m, IsDtlsServerConnection o) => o -> m TlsAuthenticationMode
- setDtlsServerConnectionAuthenticationMode :: (MonadIO m, IsDtlsServerConnection o) => o -> TlsAuthenticationMode -> m ()
Exported types
newtype DtlsServerConnection Source #
Memory-managed wrapper type.
Instances
Eq DtlsServerConnection Source # | |
Defined in GI.Gio.Interfaces.DtlsServerConnection (==) :: DtlsServerConnection -> DtlsServerConnection -> Bool # (/=) :: DtlsServerConnection -> DtlsServerConnection -> Bool # | |
IsGValue DtlsServerConnection Source # | Convert |
Defined in GI.Gio.Interfaces.DtlsServerConnection toGValue :: DtlsServerConnection -> IO GValue # fromGValue :: GValue -> IO DtlsServerConnection # | |
ManagedPtrNewtype DtlsServerConnection Source # | |
TypedObject DtlsServerConnection Source # | |
Defined in GI.Gio.Interfaces.DtlsServerConnection | |
GObject DtlsServerConnection Source # | |
Defined in GI.Gio.Interfaces.DtlsServerConnection | |
HasParentTypes DtlsServerConnection Source # | |
Defined in GI.Gio.Interfaces.DtlsServerConnection | |
type ParentTypes DtlsServerConnection Source # | |
Defined in GI.Gio.Interfaces.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 # | |
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 #
:: (HasCallStack, MonadIO m, IsDatagramBased a, IsTlsCertificate b) | |
=> a |
|
-> Maybe b |
|
-> m DtlsServerConnection | Returns: the new
|
Creates a new DtlsServerConnection
wrapping baseSocket
.
Since: 2.48
Properties
authenticationMode
The TlsAuthenticationMode
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, MonadIO m) => TlsAuthenticationMode -> m (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 ]