Method

GioSocketConnectionget_socket

since: 2.22

Declaration

GSocket*
g_socket_connection_get_socket (
  GSocketConnection* connection
)

Description

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.

Available since: 2.22

Return value

Type: GSocket

A GSocket or NULL on error.

The data is owned by the instance.