gi-gio-2.0.12: 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.TcpConnection

Contents

Description

This is the subclass of SocketConnection that is created for TCP/IP sockets.

Synopsis

Exported types

Methods

getGracefulDisconnect

tcpConnectionGetGracefulDisconnect Source #

Arguments

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

connection: a TcpConnection

-> m Bool

Returns: True if graceful disconnect is used on close, False otherwise

Checks if graceful disconnects are used. See tcpConnectionSetGracefulDisconnect.

Since: 2.22

setGracefulDisconnect

tcpConnectionSetGracefulDisconnect Source #

Arguments

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

connection: a TcpConnection

-> Bool

gracefulDisconnect: Whether to do graceful disconnects or not

-> m () 

This enables graceful disconnects on close. A graceful disconnect means that we signal the receiving end that the connection is terminated and wait for it to close the connection before closing the connection.

A graceful disconnect means that we can be sure that we successfully sent all the outstanding data to the other end, or get an error reported. However, it also means we have to wait for all the data to reach the other side and for it to acknowledge this by closing the socket, which may take a while. For this reason it is disabled by default.

Since: 2.22

Properties

gracefulDisconnect

data TcpConnectionGracefulDisconnectPropertyInfo Source #

Instances

AttrInfo TcpConnectionGracefulDisconnectPropertyInfo Source # 
type AttrOrigin TcpConnectionGracefulDisconnectPropertyInfo Source # 
type AttrLabel TcpConnectionGracefulDisconnectPropertyInfo Source # 
type AttrGetType TcpConnectionGracefulDisconnectPropertyInfo Source # 
type AttrBaseTypeConstraint TcpConnectionGracefulDisconnectPropertyInfo Source # 
type AttrSetTypeConstraint TcpConnectionGracefulDisconnectPropertyInfo Source # 
type AttrAllowedOps TcpConnectionGracefulDisconnectPropertyInfo Source #