gio.socket_connection.SocketConnection is a gio.iostream.IOStream for a connected socket. They can be created either by gio.socket_client.SocketClient when connecting to a host, or by gio.socket_listener.SocketListener when accepting a new client.