Gio.SrvTarget.prototype.get_weight
function get_weight(): Number(guint16) {
// Gjs wrapper for g_srv_target_get_weight()
}
Gets target's weight. You should not need to look at this; Gio.Resolver already sorts the targets according to the algorithm in RFC 2782.
Since 2.22
- Returns
target's weight