Poco::Zeroconf

class ServiceInfo

Library: Zeroconf
Package: ZeroCore
Header: Poco/Zeroconf/ServiceInfo.h

Description

Event Arguments for the case when a new service is discovered/removed

Member Summary

Member Functions: networkInterface, regType, replyDomain, serviceName, serviceRef

Constructors

ServiceInfo

ServiceInfo();

Creates an empty ServiceInfo.

ServiceInfo

ServiceInfo(
    DNSServiceRef sdRef,
    Poco::Int32 iface,
    const std::string & serviceName,
    const std::string & regType,
    const std::string & replyDomain
);

Creates the ServiceInfo.

Destructor

~ServiceInfo

~ServiceInfo();

Destroys the ServiceInfo.

Member Functions

networkInterface inline

Poco::Int32 networkInterface() const;

The id of the interface on which the remote service is running. The zero interface value equals all interfaces.

regType inline

const std::string & regType() const;

The type under which the service is registered

replyDomain inline

const std::string & replyDomain() const;

The domain the service is part of

serviceName inline

const std::string & serviceName() const;

The name of the service.

serviceRef inline

DNSServiceRef serviceRef() const;

The reference to the service.