Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
DtlsServerConnection
is the server-side subclass of DtlsConnection
,
representing a server-side DTLS connection.
- newtype DtlsServerConnection = DtlsServerConnection (ManagedPtr DtlsServerConnection)
- noDtlsServerConnection :: Maybe DtlsServerConnection
- class GObject 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 => TlsAuthenticationMode -> IO (GValueConstruct o)
- getDtlsServerConnectionAuthenticationMode :: (MonadIO m, IsDtlsServerConnection o) => o -> m TlsAuthenticationMode
- setDtlsServerConnectionAuthenticationMode :: (MonadIO m, IsDtlsServerConnection o) => o -> TlsAuthenticationMode -> m ()
Exported types
newtype DtlsServerConnection Source #
class GObject o => IsDtlsServerConnection o Source #
toDtlsServerConnection :: (MonadIO m, IsDtlsServerConnection o) => o -> m DtlsServerConnection Source #
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
constructDtlsServerConnectionAuthenticationMode :: IsDtlsServerConnection o => TlsAuthenticationMode -> IO (GValueConstruct o) Source #
getDtlsServerConnectionAuthenticationMode :: (MonadIO m, IsDtlsServerConnection o) => o -> m TlsAuthenticationMode Source #
setDtlsServerConnectionAuthenticationMode :: (MonadIO m, IsDtlsServerConnection o) => o -> TlsAuthenticationMode -> m () Source #