SrvTarget.this

Creates a new #GSrvTarget with the given parameters.

You should not need to use this; normally #GSrvTargets are created by #GResolver.

  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: a new #GSrvTarget.

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.22