Gio.Socket.prototype.get_local_address
function get_local_address(): Gio.SocketAddress {
// Gjs wrapper for g_socket_get_local_address()
}
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
- Returns
a Gio.SocketAddress or null on error. Free the returned object with GObject.Object.prototype.unref.