Documentation
ZC_QueryService
Require: IP-Symcon >= 5.3
array ZC_QueryService (int $InstanceID, string $Name, string $RegType, string $Domain)
Parameters
InstanceID | ID of the DNS-SD control to be requested |
Name | Name of the service |
RegType | The RegType of the service |
Domain | Domain of the service |
Returns
Returns all information about the service found as an array.
Description
Queries the service of the DNS-SD control with the ID InstanceID and the appropriate name Name, RegType RegType and the domain Domain.
The domain must have a valid value and must not be empty
Example
ZC_QueryService(12345, "NAS", "_http._tcp", "local.");
// Sample output:
/*
Array
(
[0] => Array
(
[Name] => NAS._http._tcp.local.
[Host] => NAS.local.
[Port] => 5000
[TXTRecords] => Array
(
[0] => vendor=Synology
[1] => model=RS818+
[2] => serial=xxxxx
[3] => version_major=6
[4] => version_minor=2
[5] => version_build=24922
[6] => admin_port=5000
[7] => secure_admin_port=5001
[8] => mac_address=xxxxxx
)
[IPv4] => Array
(
[0] => 192.168.1.105
)
[IPv6] => Array
(
[0] => fe60::cc4b:5ccf:fac7:5d82
)
)
)
*/