gio.tcp_connection
Module for [TcpConnection] class
Types 3
This is the subclass of [gio.socket_connection.SocketConnection] that is created for TCP/IP sockets.
Methods
TcpConnection self()Returns `this`, for use in `with` statements.TcpConnectionGidBuilder builder()Get builder for [gio.tcp_connection.TcpConnection] Returns: New builder objectbool gracefulDisconnect() @propertyGet `gracefulDisconnect` property. Returns: Whether [gio.iostream.IOStream.close] does a graceful disconnect.void gracefulDisconnect(bool propval) @propertySet `gracefulDisconnect` property. Params: propval = Whether [gio.iostream.IOStream.close] does a graceful disconnect.bool getGracefulDisconnect()Checks if graceful disconnects are used. See [gio.tcp_connection.TcpConnection.setGracefulDisconnect]. Returns: true if graceful disconnect is used on close, false otherwisevoid 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...Methods
T gracefulDisconnect(bool propval)Set `gracefulDisconnect` property. Params: propval = Whether [gio.iostream.IOStream.close] does a graceful disconnect. Returns: Builder instance for fluent chainingFluent builder for [gio.tcp_connection.TcpConnection]
Methods