gi-gio-2.0.14: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.TcpWrapperConnection

Contents

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.

Synopsis

Exported types

Methods

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