Try to get the local address of a bound socket. This is only useful if the socket has been bound to a local address, either explicitly or implicitly when connecting.
Available since: 2.22
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.