Gio.SocketConnection.factory_register_type

function factory_register_type(g_type: GObject.Type, family: Gio.SocketFamily, type: Gio.SocketType, protocol: Number(gint)): void {
    // Gjs wrapper for g_socket_connection_factory_register_type()
}
  

Looks up the GLib.Type to be used when creating socket connections on sockets with the specified family, type and protocol.

If no type is registered, the Gio.SocketConnection base type is returned.

Since 2.22

g_type

a GLib.Type, inheriting from %G_TYPE_SOCKET_CONNECTION

family

a Gio.SocketFamily

type

a Gio.SocketType

protocol

a protocol id