gi-gio
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.TcpWrapperConnection

Description

A GTcpWrapperConnection 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

Exported types

newtype TcpWrapperConnection Source #

Memory-managed wrapper type.

Instances

Instances details
Eq TcpWrapperConnection Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

GObject TcpWrapperConnection Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

ManagedPtrNewtype TcpWrapperConnection Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

TypedObject TcpWrapperConnection Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

Methods

glibType :: IO GType #

HasParentTypes TcpWrapperConnection Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

HasAttributeList TcpWrapperConnection Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

(info ~ ResolveTcpWrapperConnectionMethod t TcpWrapperConnection, OverloadedMethod info TcpWrapperConnection p, HasField t TcpWrapperConnection p) => HasField (t :: Symbol) TcpWrapperConnection (p :: Type) Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

(info ~ ResolveTcpWrapperConnectionMethod t TcpWrapperConnection, OverloadedMethodInfo info TcpWrapperConnection) => IsLabel t (MethodProxy info TcpWrapperConnection) Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

(info ~ ResolveTcpWrapperConnectionMethod t TcpWrapperConnection, OverloadedMethod info TcpWrapperConnection p) => IsLabel t (TcpWrapperConnection -> p) Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

IsGValue (Maybe TcpWrapperConnection) Source #

Convert TcpWrapperConnection to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttributeList TcpWrapperConnection Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type ParentTypes TcpWrapperConnection Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type SignalList TcpWrapperConnection Source # 
Instance details

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

Instances details
(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.

Methods

type family ResolveTcpWrapperConnectionMethod (t :: Symbol) o where ... Source #

Equations

ResolveTcpWrapperConnectionMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveTcpWrapperConnectionMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveTcpWrapperConnectionMethod "clearPending" o = IOStreamClearPendingMethodInfo 
ResolveTcpWrapperConnectionMethod "close" o = IOStreamCloseMethodInfo 
ResolveTcpWrapperConnectionMethod "closeAsync" o = IOStreamCloseAsyncMethodInfo 
ResolveTcpWrapperConnectionMethod "closeFinish" o = IOStreamCloseFinishMethodInfo 
ResolveTcpWrapperConnectionMethod "connect" o = SocketConnectionConnectMethodInfo 
ResolveTcpWrapperConnectionMethod "connectAsync" o = SocketConnectionConnectAsyncMethodInfo 
ResolveTcpWrapperConnectionMethod "connectFinish" o = SocketConnectionConnectFinishMethodInfo 
ResolveTcpWrapperConnectionMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveTcpWrapperConnectionMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveTcpWrapperConnectionMethod "getv" o = ObjectGetvMethodInfo 
ResolveTcpWrapperConnectionMethod "hasPending" o = IOStreamHasPendingMethodInfo 
ResolveTcpWrapperConnectionMethod "isClosed" o = IOStreamIsClosedMethodInfo 
ResolveTcpWrapperConnectionMethod "isConnected" o = SocketConnectionIsConnectedMethodInfo 
ResolveTcpWrapperConnectionMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveTcpWrapperConnectionMethod "notify" o = ObjectNotifyMethodInfo 
ResolveTcpWrapperConnectionMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveTcpWrapperConnectionMethod "ref" o = ObjectRefMethodInfo 
ResolveTcpWrapperConnectionMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveTcpWrapperConnectionMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveTcpWrapperConnectionMethod "spliceAsync" o = IOStreamSpliceAsyncMethodInfo 
ResolveTcpWrapperConnectionMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveTcpWrapperConnectionMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveTcpWrapperConnectionMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveTcpWrapperConnectionMethod "unref" o = ObjectUnrefMethodInfo 
ResolveTcpWrapperConnectionMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveTcpWrapperConnectionMethod "getBaseIoStream" o = TcpWrapperConnectionGetBaseIoStreamMethodInfo 
ResolveTcpWrapperConnectionMethod "getData" o = ObjectGetDataMethodInfo 
ResolveTcpWrapperConnectionMethod "getGracefulDisconnect" o = TcpConnectionGetGracefulDisconnectMethodInfo 
ResolveTcpWrapperConnectionMethod "getInputStream" o = IOStreamGetInputStreamMethodInfo 
ResolveTcpWrapperConnectionMethod "getLocalAddress" o = SocketConnectionGetLocalAddressMethodInfo 
ResolveTcpWrapperConnectionMethod "getOutputStream" o = IOStreamGetOutputStreamMethodInfo 
ResolveTcpWrapperConnectionMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveTcpWrapperConnectionMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveTcpWrapperConnectionMethod "getRemoteAddress" o = SocketConnectionGetRemoteAddressMethodInfo 
ResolveTcpWrapperConnectionMethod "getSocket" o = SocketConnectionGetSocketMethodInfo 
ResolveTcpWrapperConnectionMethod "setData" o = ObjectSetDataMethodInfo 
ResolveTcpWrapperConnectionMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveTcpWrapperConnectionMethod "setGracefulDisconnect" o = TcpConnectionSetGracefulDisconnectMethodInfo 
ResolveTcpWrapperConnectionMethod "setPending" o = IOStreamSetPendingMethodInfo 
ResolveTcpWrapperConnectionMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveTcpWrapperConnectionMethod l o = MethodResolutionFailed l o :: Type 

getBaseIoStream

new

tcpWrapperConnectionNew Source #

Arguments

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

baseIoStream: the IOStream to wrap

-> b

socket: the Socket associated with baseIoStream

-> m TcpWrapperConnection

Returns: the new SocketConnection.

Wraps baseIoStream and socket together as a SocketConnection.

Since: 2.28

Properties

baseIoStream

The wrapped IOStream.

Since: 2.28

data TcpWrapperConnectionBaseIoStreamPropertyInfo Source #

Instances

Instances details
AttrInfo TcpWrapperConnectionBaseIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

Associated Types

type AttrAllowedOps TcpWrapperConnectionBaseIoStreamPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrBaseTypeConstraint TcpWrapperConnectionBaseIoStreamPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrGetType TcpWrapperConnectionBaseIoStreamPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrSetTypeConstraint TcpWrapperConnectionBaseIoStreamPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrTransferTypeConstraint TcpWrapperConnectionBaseIoStreamPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrTransferType TcpWrapperConnectionBaseIoStreamPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrLabel TcpWrapperConnectionBaseIoStreamPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrOrigin TcpWrapperConnectionBaseIoStreamPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrAllowedOps TcpWrapperConnectionBaseIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrBaseTypeConstraint TcpWrapperConnectionBaseIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrGetType TcpWrapperConnectionBaseIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrLabel TcpWrapperConnectionBaseIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrOrigin TcpWrapperConnectionBaseIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrSetTypeConstraint TcpWrapperConnectionBaseIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrTransferType TcpWrapperConnectionBaseIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

type AttrTransferTypeConstraint TcpWrapperConnectionBaseIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TcpWrapperConnection

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