new

fun new(hostname: String, port: <Error class: unknown class>, priority: <Error class: unknown class>, weight: <Error class: unknown class>): SrvTarget

Creates a new #GSrvTarget with the given parameters.

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

Return

a new #GSrvTarget.

Since

2.22

Parameters

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