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.Objects.TcpWrapperConnection

Contents

Description

A tTcpWrapperConnection can be used to wrap a tIOStream that is based on a tSocket, but which is not actually a tSocketConnection. This is used by tSocketClient so that it can always return a tSocketConnection, even when the connection it has actually created is not directly a tSocketConnection.

Since: 2.28

Synopsis

Exported types

newtype TcpWrapperConnection Source #

Memory-managed wrapper type.

Constructors

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

Defined in GI.Gio.Objects.TcpWrapperConnection

GObject TcpWrapperConnection Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

Methods

gobjectType :: IO GType

IsGValue TcpWrapperConnection Source #

Convert TcpWrapperConnection to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

Methods

toGValue :: TcpWrapperConnection -> IO GValue

fromGValue :: GValue -> IO TcpWrapperConnection

HasParentTypes TcpWrapperConnection Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type ParentTypes TcpWrapperConnection Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type ParentTypes TcpWrapperConnection = TcpConnection ': (SocketConnection ': (IOStream ': (Object ': ([] :: [Type]))))

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 # 
Instance details

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.

noTcpWrapperConnection :: Maybe TcpWrapperConnection Source #

A convenience alias for Nothing :: Maybe TcpWrapperConnection.

Methods

Overloaded methods

getBaseIoStream

tcpWrapperConnectionGetBaseIoStream Source #

Arguments

:: (HasCallStack, MonadIO m, IsTcpWrapperConnection a) 
=> a

conn: a tTcpWrapperConnection

-> m IOStream

Returns: conn's base tIOStream

Get's conn's base tIOStream

new

tcpWrapperConnectionNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsIOStream a, IsSocket b) 
=> a

baseIoStream: the tIOStream to wrap

-> b

socket: the tSocket associated with baseIoStream

-> m TcpWrapperConnection

Returns: the new tSocketConnection.

Wraps baseIoStream and socket together as a tSocketConnection.

Since: 2.28

Properties

baseIoStream

No description available in the introspection data.

constructTcpWrapperConnectionBaseIoStream :: (IsTcpWrapperConnection o, IsIOStream a) => a -> IO (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