TcpWrapperConnection

A #GTcpWrapperConnection can be used to wrap a #GIOStream that is based on a #GSocket, but which is not actually a #GSocketConnection. This is used by #GSocketClient so that it can always return a #GSocketConnection, even when the connection it has actually created is not directly a #GSocketConnection.

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 #GSocketConnection.

Members

Functions

getBaseIoStream
IOStream getBaseIoStream()

Get's @conn's base #GIOStream

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 g_tcp_connection_set_graceful_disconnect().

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