Creates a new SrvTarget with the given parameters.
You should not need to use this; normally SrvTargets are created by Resolver.
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 |
a new SrvTarget. |