Gio.Socket.prototype.get_ttl

function get_ttl(): Number(guint) {
    // Gjs wrapper for g_socket_get_ttl()
}
  

Gets the unicast time-to-live setting on socket; see Gio.Socket.prototype.set_ttl for more details.

Since 2.32

Returns

the time-to-live setting on socket