| 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 |
GI.Gio.Objects.TcpWrapperConnection
Description
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.
- newtype TcpWrapperConnection = TcpWrapperConnection (ManagedPtr TcpWrapperConnection)
- class GObject o => IsTcpWrapperConnection o
- toTcpWrapperConnection :: IsTcpWrapperConnection o => o -> IO TcpWrapperConnection
- noTcpWrapperConnection :: Maybe TcpWrapperConnection
- data TcpWrapperConnectionGetBaseIoStreamMethodInfo
- tcpWrapperConnectionGetBaseIoStream :: (HasCallStack, MonadIO m, IsTcpWrapperConnection a) => a -> m IOStream
- tcpWrapperConnectionNew :: (HasCallStack, MonadIO m, IsIOStream a, IsSocket b) => a -> b -> m TcpWrapperConnection
- data TcpWrapperConnectionBaseIoStreamPropertyInfo
- constructTcpWrapperConnectionBaseIoStream :: (IsTcpWrapperConnection o, IsIOStream a) => a -> IO (GValueConstruct o)
- getTcpWrapperConnectionBaseIoStream :: (MonadIO m, IsTcpWrapperConnection o) => o -> m IOStream
- tcpWrapperConnectionBaseIoStream :: AttrLabelProxy "baseIoStream"
Exported types
newtype TcpWrapperConnection Source #
Constructors
| TcpWrapperConnection (ManagedPtr TcpWrapperConnection) |
Instances
| GObject TcpWrapperConnection Source # | |
| IsObject TcpWrapperConnection Source # | |
| IsTcpConnection TcpWrapperConnection Source # | |
| IsSocketConnection TcpWrapperConnection Source # | |
| IsIOStream TcpWrapperConnection Source # | |
| IsTcpWrapperConnection TcpWrapperConnection Source # | |
| ((~) * info (ResolveTcpWrapperConnectionMethod t TcpWrapperConnection), MethodInfo * info TcpWrapperConnection p) => IsLabel t (TcpWrapperConnection -> p) Source # | |
| ((~) * info (ResolveTcpWrapperConnectionMethod t TcpWrapperConnection), MethodInfo * info TcpWrapperConnection p) => IsLabelProxy t (TcpWrapperConnection -> p) Source # | |
| HasAttributeList * TcpWrapperConnection Source # | |
| type AttributeList TcpWrapperConnection Source # | |
| type SignalList TcpWrapperConnection Source # | |
class GObject o => IsTcpWrapperConnection o Source #
Methods
getBaseIoStream
data TcpWrapperConnectionGetBaseIoStreamMethodInfo Source #
Instances
| ((~) * signature (m IOStream), MonadIO m, IsTcpWrapperConnection a) => MethodInfo * TcpWrapperConnectionGetBaseIoStreamMethodInfo a signature Source # | |
tcpWrapperConnectionGetBaseIoStream Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTcpWrapperConnection a) | |
| => a |
|
| -> m IOStream | Returns: |
Get's conn's base IOStream
new
tcpWrapperConnectionNew Source #
Arguments
| :: (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
data TcpWrapperConnectionBaseIoStreamPropertyInfo Source #
Instances
constructTcpWrapperConnectionBaseIoStream :: (IsTcpWrapperConnection o, IsIOStream a) => a -> IO (GValueConstruct o) Source #
getTcpWrapperConnectionBaseIoStream :: (MonadIO m, IsTcpWrapperConnection o) => o -> m IOStream Source #
tcpWrapperConnectionBaseIoStream :: AttrLabelProxy "baseIoStream" Source #