Sets our main struct and passes it to the parent class.
Connect connection to the specified remote address.
Asynchronously connect connection to the specified remote address.
Gets the result of a Socket.connectionConnectAsync call.
Try to get the local address of a socket connection.
Try to get the remote address of a socket connection.
Gets the underlying atk.Socket object of the connection. This can be useful if you want to do something unusual on it not supported by the gio.SocketConnection APIs.
Get the main Gtk struct
the main Gtk struct as a void*
Checks if connection is connected. This is equivalent to calling Socket.isConnected on connection's underlying atk.Socket
Looks up the GType to be used when creating socket connections on sockets with the specified family, type and protocol_id.
Looks up the GType to be used when creating socket connections on sockets with the specified family, type and protocol.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Finishes an asynchronous io stream splice operation.
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.
Gets the input stream for this object. This is used for reading.
Gets the output stream for this object. This is used for writing.
Checks if a stream has pending actions.
Checks if a stream is closed.
Sets stream to have actions pending. If the pending flag is already set or stream is closed, it will return FALSE and set error.
Asyncronously splice the output stream of stream1 to the input stream of stream2, and splice the output stream of stream2 to the input stream of stream1.
gio.SocketConnection is a gio.IOStream for a connected socket. They can be created either by gio.SocketClient when connecting to a host, or by gio.SocketListener when accepting a new client.
The type of the gio.SocketConnection object returned from these calls depends on the type of the underlying socket that is in use. For instance, for a TCP/IP connection it will be a gio.TcpConnection
Choosing what type of object to construct is done with the socket connection factory, and it is possible for 3rd parties to register custom socket connection types for specific combination of socket family/type/protocol using Socket.connectionFactoryRegisterType.
To close a gio.SocketConnection, use g_io_stream_close(). Closing both substreams of the gio.IOStream separately will not close the underlying atk.Socket