TcpWrapperConnection

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

Constructors

this
this(GTcpWrapperConnection* gTcpWrapperConnection, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(IOStream baseIoStream, Socket socket)

Wraps base_io_stream and socket together as a gio.SocketConnection

Members

Functions

getBaseIoStream
IOStream getBaseIoStream()

Get's conn's base gio.IOStream

getStruct
void* getStruct()

the main Gtk struct as a void*

getTcpWrapperConnectionStruct
GTcpWrapperConnection* getTcpWrapperConnectionStruct(bool transferOwnership)

Get the main Gtk struct

Static functions

getType
GType getType()

Variables

gTcpWrapperConnection
GTcpWrapperConnection* gTcpWrapperConnection;

the main Gtk struct

Inherited Members

From TcpConnection

gTcpConnection
GTcpConnection* gTcpConnection;

the main Gtk struct

getTcpConnectionStruct
GTcpConnection* getTcpConnectionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getGracefulDisconnect
bool getGracefulDisconnect()

Checks if graceful disconnects are used. See 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.

Meta

Since

2.28