Method

GioSocketConnectionget_local_address

Declaration

GSocketAddress*
g_socket_connection_get_local_address (
  GSocketConnection* connection
  GError** error
)

Description

Try to get the local address of a socket connection.

Available since:2.22

Return value

Returns: GSocketAddress
 

A GSocketAddress or NULL on error. Free the returned object with g_object_unref().

 The caller of the method takes ownership of the data, and is responsible for freeing it.