TcpWrapperConnection
A GTcpWrapperConnection
can be used to wrap a class@Gio.IOStream that is based on a class@Gio.Socket, but which is not actually a class@Gio.SocketConnection. This is used by class@Gio.SocketClient so that it can always return a class@Gio.SocketConnection, even when the connection it has actually created is not directly a class@Gio.SocketConnection.
Since
2.28
Properties
The wrapped class@Gio.IOStream.
Whether method@Gio.IOStream.close does a graceful disconnect.
The class@Gio.InputStream to read from.
The class@Gio.OutputStream to write to.
Functions
Clears the pending flag on @stream.
Closes the stream, releasing resources related to it. This will also close the individual input and output streams, if they are not already closed.
Requests an asynchronous close of the stream, releasing resources related to it. When the operation is finished @callback will be called. You can then call g_io_stream_close_finish() to get the result of the operation.
Closes a stream.
Connect @connection to the specified remote address.
Asynchronously connect @connection to the specified remote address.
Gets the result of a g_socket_connection_connect_async() call.
Gets @conn's base #GIOStream
Checks if graceful disconnects are used. See g_tcp_connection_set_graceful_disconnect().
Gets the input stream for this object. This is used for reading.
Try to get the local address of a socket connection.
Gets the output stream for this object. This is used for writing.
Try to get the remote address of a socket connection.
Checks if a stream has pending actions.
Checks if @connection is connected. This is equivalent to calling g_socket_is_connected() on @connection's underlying #GSocket.
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.
Sets @stream to have actions pending. If the pending flag is already set or @stream is closed, it will return false and set
Asynchronously splice the output stream of @stream1 to the input stream of