Sets our main struct and passes it to the parent class
the main Gtk struct as a void*
Receives credentials from the sending end of the connection. The sending end has to call g_unix_connection_send_credentials() (or similar) for this to work. As well as reading the credentials this also reads (and discards) a single byte from the stream, as this is required for credentials passing to work on some implementations. Other ways to exchange credentials with a foreign peer includes the GUnixCredentialsMessage type and g_socket_get_credentials() function. Since 2.26
Receives a file descriptor from the sending end of the connection. The sending end has to call g_unix_connection_send_fd() for this to work. As well as reading the fd this also reads a single byte from the stream, as this is required for fd passing to work on some implementations. Since 2.22
Passes the credentials of the current user the receiving side of the connection. The recieving end has to call g_unix_connection_receive_credentials() (or similar) to accept the credentials. As well as sending the credentials this also writes a single NUL byte to the stream, as this is required for credentials passing to work on some implementations. Other ways to exchange credentials with a foreign peer includes the GUnixCredentialsMessage type and g_socket_get_credentials() function. Since 2.26
Passes a file descriptor to the recieving side of the connection. The recieving end has to call g_unix_connection_receive_fd() to accept the file descriptor. As well as sending the fd this also writes a single byte to the stream, as this is required for fd passing to work on some implementations. Since 2.22
the main Gtk struct
the main Gtk struct
the main Gtk struct as a void*
Try to get the local address of a socket connection. Since 2.22
Try to get the remote address of a socket connection. Since 2.22
Gets the underlying GSocket object of the connection. This can be useful if you want to do something unusual on it not supported by the GSocketConnection APIs. Since 2.22
Creates a GSocketConnection subclass of the right type for socket. Since 2.22
Looks up the GType to be used when creating socket connections on sockets with the specified family,type and protocol_id. If no type is registered, the GSocketConnection base type is returned. Since 2.22
Looks up the GType to be used when creating socket connections on sockets with the specified family,type and protocol. If no type is registered, the GSocketConnection base type is returned. Since 2.22
Description This is the subclass of GSocketConnection that is created for UNIX domain sockets. It contains functions to do some of the UNIX socket specific functionality like passing file descriptors. Note that <gio/gunixconnection.h> belongs to the UNIX-specific GIO interfaces, thus you have to use the gio-unix-2.0.pc pkg-config file when using it.