Method

GioSocketConnectionget_socket

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

Returns: GSocket
 

A GSocket or NULL on error.

 The data is owned by the instance.