Gio.SocketClient
const Gio = imports.gi.Gio;
let socketClient = new Gio.SocketClient({
    enable_proxy: value,
    family: value,
    local_address: value,
    protocol: value,
    proxy_resolver: value,
    timeout: value,
    tls: value,
    tls_validation_flags: value,
    type: value,
});
  Gio.SocketClient is a lightweight high-level utility class for connecting to a network host using a connection oriented socket type.
You create a Gio.SocketClient object, set any options you want, and then call a sync or async connect operation, which returns a Gio.SocketConnection subclass on success.
The type of the Gio.SocketConnection object returned 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.
As Gio.SocketClient is a lightweight object, you don't need to cache it. You can just create a new one any time you need one.
Since 2.22
Hierarchy
- 
GObject.Object
- Gio.SocketClient
 
 
Constructors
Methods
- Gio.SocketClient.prototype.add_application_proxy
 - Gio.SocketClient.prototype.connect
 - Gio.SocketClient.prototype.connect_async
 - Gio.SocketClient.prototype.connect_finish
 - Gio.SocketClient.prototype.connect_to_host
 - Gio.SocketClient.prototype.connect_to_host_async
 - Gio.SocketClient.prototype.connect_to_host_finish
 - Gio.SocketClient.prototype.connect_to_service
 - Gio.SocketClient.prototype.connect_to_service_async
 - Gio.SocketClient.prototype.connect_to_service_finish
 - Gio.SocketClient.prototype.connect_to_uri
 - Gio.SocketClient.prototype.connect_to_uri_async
 - Gio.SocketClient.prototype.connect_to_uri_finish
 - Gio.SocketClient.prototype.get_enable_proxy
 - Gio.SocketClient.prototype.get_family
 - Gio.SocketClient.prototype.get_local_address
 - Gio.SocketClient.prototype.get_protocol
 - Gio.SocketClient.prototype.get_proxy_resolver
 - Gio.SocketClient.prototype.get_socket_type
 - Gio.SocketClient.prototype.get_timeout
 - Gio.SocketClient.prototype.get_tls
 - Gio.SocketClient.prototype.get_tls_validation_flags
 - Gio.SocketClient.prototype.set_enable_proxy
 - Gio.SocketClient.prototype.set_family
 - Gio.SocketClient.prototype.set_local_address
 - Gio.SocketClient.prototype.set_protocol
 - Gio.SocketClient.prototype.set_proxy_resolver
 - Gio.SocketClient.prototype.set_socket_type
 - Gio.SocketClient.prototype.set_timeout
 - Gio.SocketClient.prototype.set_tls
 - Gio.SocketClient.prototype.set_tls_validation_flags