TcpWrapperConnection

A gio.tcp_wrapper_connection.TcpWrapperConnection can be used to wrap a gio.iostream.IOStream that is based on a gio.socket.Socket, but which is not actually a gio.socket_connection.SocketConnection. This is used by gio.socket_client.SocketClient so that it can always return a gio.socket_connection.SocketConnection, even when the connection it has actually created is not directly a gio.socket_connection.SocketConnection.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(gio.iostream.IOStream baseIoStream, gio.socket.Socket socket)

Wraps base_io_stream and socket together as a #GSocketConnection.

Members

Functions

getBaseIoStream
gio.iostream.IOStream getBaseIoStream()

Gets conn's base #GIOStream

self
TcpWrapperConnection self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Inherited Members

From TcpConnection

getGType
GType getGType()
gType
GType gType [@property getter]
self
TcpConnection self()

Returns this, for use in with statements.

getGracefulDisconnect
bool getGracefulDisconnect()

Checks if graceful disconnects are used. See gio.tcp_connection.TcpConnection.setGracefulDisconnect.

setGracefulDisconnect
void setGracefulDisconnect(bool gracefulDisconnect)

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.