gio.socket_client.SocketClient is a lightweight high-level utility class for connecting to a network host using a connection oriented socket type.
You create a gio.socket_client.SocketClient object, set any options you want, and then call a sync or async connect operation, which returns a gio.socket_connection.SocketConnection subclass on success.
The type of the gio.socket_connection.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.tcp_connection.TcpConnection.
As gio.socket_client.SocketClient is a lightweight object, you don't need to cache it. You can just create a new one any time you need one.
gio.socket_client.SocketClient is a lightweight high-level utility class for connecting to a network host using a connection oriented socket type.
You create a gio.socket_client.SocketClient object, set any options you want, and then call a sync or async connect operation, which returns a gio.socket_connection.SocketConnection subclass on success.
The type of the gio.socket_connection.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.tcp_connection.TcpConnection.
As gio.socket_client.SocketClient is a lightweight object, you don't need to cache it. You can just create a new one any time you need one.