W Wrapl, The Programming Language




Inherits from:

This is the subclass of Gtk.Gio.GSocketConnection.T that is created for TCP/IP sockets.


Nil : T


GetType() : Gtk.GObject.Type.T


:GetGracefulDisconnect(self @ T) : Std.Symbol.T

Checks if graceful disconnects are used. See SetGracefulDisconnect.

connection a T
Returns TRUE if graceful disconnect is used on close, FALSE otherwise

:Priv(self @ T) : Std.Object.T

:SetGracefulDisconnect(self @ T, graceful_disconnect @ Std.Symbol.T) : Std.Object.T

This enabled 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.

connection a T
graceful_disconnect Whether to do graceful disconnects or not

:setPriv(self @ T, value @ Std.Object.T) : Std.Object.T