Method

GioSocketConnectionget_local_address

since: 2.22

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

Type: 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.