« Back to Product

Documentation

ZC_QueryServiceType

Require: IP-Symcon >= 5.3

 array ZC_QueryServiceType (int $InstanceID, string $RegType, string $Domain (optional)) 

Parameters

InstanceID

ID of the DNS-SD control to be requested

RegType

The RegType of the service

Domain (optional)

Domain of the service

Returns

Returns all found services as an array.

Description

Queries the services of the DNS-SD control with the ID InstanceID and the appropriate RegType RegType and the domain Domain.

Warning

The Domain is optional and can contain an empty string

Example

ZC_QueryServiceType(12345, "_http._tcp", "");
 
// Sample output
/*
Array
(
    [0] => Array
        (
            [Name] => NAS
            [Type] => _http._tcp.
            [Domain] => local.
        )
)
*/
Any questions?