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 |
A TcpWrapperConnection
can be used to wrap a IOStream
that is
based on a Socket
, but which is not actually a
SocketConnection
. This is used by SocketClient
so that it can
always return a SocketConnection
, even when the connection it has
actually created is not directly a SocketConnection
.
Since: 2.28
Synopsis
- newtype TcpWrapperConnection = TcpWrapperConnection (ManagedPtr TcpWrapperConnection)
- class (GObject o, IsDescendantOf TcpWrapperConnection o) => IsTcpWrapperConnection o
- toTcpWrapperConnection :: (MonadIO m, IsTcpWrapperConnection o) => o -> m TcpWrapperConnection
- tcpWrapperConnectionGetBaseIoStream :: (HasCallStack, MonadIO m, IsTcpWrapperConnection a) => a -> m IOStream
- tcpWrapperConnectionNew :: (HasCallStack, MonadIO m, IsIOStream a, IsSocket b) => a -> b -> m TcpWrapperConnection
- constructTcpWrapperConnectionBaseIoStream :: (IsTcpWrapperConnection o, MonadIO m, IsIOStream a) => a -> m (GValueConstruct o)
- getTcpWrapperConnectionBaseIoStream :: (MonadIO m, IsTcpWrapperConnection o) => o -> m IOStream
Exported types
newtype TcpWrapperConnection Source #
Memory-managed wrapper type.
Instances
Eq TcpWrapperConnection Source # | |
Defined in GI.Gio.Objects.TcpWrapperConnection (==) :: TcpWrapperConnection -> TcpWrapperConnection -> Bool # (/=) :: TcpWrapperConnection -> TcpWrapperConnection -> Bool # | |
IsGValue TcpWrapperConnection Source # | Convert |
Defined in GI.Gio.Objects.TcpWrapperConnection toGValue :: TcpWrapperConnection -> IO GValue # fromGValue :: GValue -> IO TcpWrapperConnection # | |
ManagedPtrNewtype TcpWrapperConnection Source # | |
TypedObject TcpWrapperConnection Source # | |
Defined in GI.Gio.Objects.TcpWrapperConnection | |
GObject TcpWrapperConnection Source # | |
Defined in GI.Gio.Objects.TcpWrapperConnection | |
HasParentTypes TcpWrapperConnection Source # | |
Defined in GI.Gio.Objects.TcpWrapperConnection | |
type ParentTypes TcpWrapperConnection Source # | |
Defined in GI.Gio.Objects.TcpWrapperConnection |
class (GObject o, IsDescendantOf TcpWrapperConnection o) => IsTcpWrapperConnection o Source #
Type class for types which can be safely cast to TcpWrapperConnection
, for instance with toTcpWrapperConnection
.
Instances
(GObject o, IsDescendantOf TcpWrapperConnection o) => IsTcpWrapperConnection o Source # | |
Defined in GI.Gio.Objects.TcpWrapperConnection |
toTcpWrapperConnection :: (MonadIO m, IsTcpWrapperConnection o) => o -> m TcpWrapperConnection Source #
Cast to TcpWrapperConnection
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Overloaded methods
getBaseIoStream
tcpWrapperConnectionGetBaseIoStream Source #
:: (HasCallStack, MonadIO m, IsTcpWrapperConnection a) | |
=> a |
|
-> m IOStream | Returns: |
Get's conn
's base IOStream
new
tcpWrapperConnectionNew Source #
:: (HasCallStack, MonadIO m, IsIOStream a, IsSocket b) | |
=> a |
|
-> b |
|
-> m TcpWrapperConnection | Returns: the new |
Wraps baseIoStream
and socket
together as a SocketConnection
.
Since: 2.28
Properties
baseIoStream
No description available in the introspection data.
constructTcpWrapperConnectionBaseIoStream :: (IsTcpWrapperConnection o, MonadIO m, IsIOStream a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “base-io-stream
” property. This is rarely needed directly, but it is used by new
.
getTcpWrapperConnectionBaseIoStream :: (MonadIO m, IsTcpWrapperConnection o) => o -> m IOStream Source #
Get the value of the “base-io-stream
” property.
When overloading is enabled, this is equivalent to
get
tcpWrapperConnection #baseIoStream