Socket.getLocalAddress

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. Since 2.22

class Socket
getLocalAddress
()

Return Value

a GSocketAddress or NULL on error. Free the returned object with g_object_unref(). [transfer full]

Throws

GException on failure.

Meta