UnixConnection
Object Hierarchy:
GLib.UnixConnection
GLib.UnixConnection
GLib.UnixConnection
GLib.SocketConnection
GLib.SocketConnection
GLib.SocketConnection->GLib.UnixConnection
GLib.IOStream
GLib.IOStream
GLib.IOStream->GLib.SocketConnection
GLib.Object
GLib.Object
GLib.Object->GLib.IOStream
Description:
public class UnixConnection : SocketConnection
This is the subclass of [class@Gio.
SocketConnection] that is created for UNIX domain sockets.
It contains functions to do some of the UNIX socket specific functionality like passing file descriptors.
Since GLib 2.72, `GUnixConnection` is available on all platforms. It requires underlying system support (such as Windows 10 with
`AF_UNIX`) at run time.
Before GLib 2.72, `<gio/gunixconnection.h>` belonged to the UNIX-specific GIO interfaces, thus you had to use the `gio-unix-2.0.pc`
pkg-config file when using it. This is no longer necessary since GLib 2.72.
Content:
Creation methods:
Methods:
public Credentials receive_credentials (Cancellable ? cancellable = null ) throws Error
Receives credentials from the sending end of the connection.
public async Credentials receive_credentials_async (Cancellable ? cancellable = null ) throws Error
Asynchronously receive credentials.
public int receive_fd (Cancellable ? cancellable = null ) throws Error
Receives a file descriptor from the sending end of the connection.
public bool send_credentials (Cancellable ? cancellable = null ) throws Error
Passes the credentials of the current user the receiving side of the
connection.
public async bool send_credentials_async (Cancellable ? cancellable = null ) throws Error
Asynchronously send credentials.
public bool send_fd (int fd, Cancellable ? cancellable = null ) throws Error
Passes a file descriptor to the receiving side of the connection.
Inherited Members:
All known members inherited from class GLib.SocketConnection
connect
connect_async
factory_create_connection
factory_lookup_type
factory_register_type
get_local_address
get_remote_address
get_socket
is_connected
socket
All known members inherited from class GLib.IOStream
clear_pending
close
close_async
closed
get_input_stream
get_output_stream
has_pending
input_stream
is_closed
output_stream
set_pending
splice_async
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref