Files
kiss-flixel/feedback-server/externs/node/dns/ResolveSrv.hx

42 lines
982 B
Haxe

package node.dns;
/**
Uses the DNS protocol to resolve service records (`SRV` records) for the`hostname`. The `addresses` argument passed to the `callback` function will
be an array of objects with the following properties:
* `priority`
* `weight`
* `port`
* `name`
```js
{
priority: 10,
weight: 5,
port: 21223,
name: 'service.example.com'
}
```
**/
@:jsRequire("dns", "resolveSrv") @valueModuleOnly extern class ResolveSrv {
/**
Uses the DNS protocol to resolve service records (`SRV` records) for the`hostname`. The `addresses` argument passed to the `callback` function will
be an array of objects with the following properties:
* `priority`
* `weight`
* `port`
* `name`
```js
{
priority: 10,
weight: 5,
port: 21223,
name: 'service.example.com'
}
```
**/
@:selfCall
static function call(hostname:String, callback:(err:Null<global.nodejs.ErrnoException>, addresses:Array<SrvRecord>) -> Void):Void;
}