Libraries:Gtk:Gio:GSrvTarget
Types
T
Constants
Nil : T
Functions
GetType() : Gtk.GObject.Type.T
ListSort(targets @ Std.Object.T) : Std.Object.T
Sorts targets in place according to the algorithm in RFC 2782.
New(hostname @ Std.String.T, port @ Std.Integer.SmallT, priority @ Std.Integer.SmallT, weight @ Std.Integer.SmallT) : Gtk.Gio.GSrvTarget.T
Creates a new T with the given parameters.
You should not need to use this; normally Ts are created by Gtk.Gio.GResolver.T.
hostname | the host that the service is running on |
port | the port that the service is running on |
priority | the target's priority |
weight | the target's weight |
Returns | a new T. |
Methods
:"="(_ @ T, _ @ T)
:Copy(self @ T) : Gtk.Gio.GSrvTarget.T
:Free(self @ T) : Std.Object.T
:GetHostname(self @ T) : Std.String.T
Gets target's hostname (in ASCII form; if you are going to present this to the user, you should use g_hostname_is_ascii_encoded() to check if it contains encoded Unicode segments, and use g_hostname_to_unicode() to convert it if it does.)
target | a T |
Returns | target's hostname |
:GetPort(self @ T) : Std.Integer.SmallT
:GetPriority(self @ T) : Std.Integer.SmallT
Gets target's priority. You should not need to look at this; Gtk.Gio.GResolver.T already sorts the targets according to the algorithm in RFC 2782.
target | a T |
Returns | target's priority |
:GetWeight(self @ T) : Std.Integer.SmallT
Gets target's weight. You should not need to look at this; Gtk.Gio.GResolver.T already sorts the targets according to the algorithm in RFC 2782.
target | a T |
Returns | target's weight |