SrvTarget.this

Creates a new gio.SrvTarget with the given parameters.

You should not need to use this; normally gio.SrvTargets are created by gio.Resolver

  1. this(GSrvTarget* gSrvTarget, bool ownedRef)
  2. this(string hostname, ushort port, ushort priority, ushort weight)
    class SrvTarget
    this
    (
    string hostname
    ,
    ushort port
    ,
    ushort priority
    ,
    ushort weight
    )

Parameters

hostname string

the host that the service is running on

port ushort

the port that the service is running on

priority ushort

the target's priority

weight ushort

the target's weight

Return Value

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.22