Poco::Zeroconf

class ResolvedServiceInfo

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

Description

ResolvedServiceInfo holds information for resolved services.

Member Summary

Member Functions: fullServiceName, hostPort, hostTarget, networkInterface, properties, serviceRef

Constructors

ResolvedServiceInfo

ResolvedServiceInfo();

Creates an invalid ResolvedServiceInfo. Required for asynchronous notifications.

ResolvedServiceInfo

ResolvedServiceInfo(
    DNSServiceRef sdRef,
    Poco::Int32 iface,
    const std::string & serviceName,
    const std::string & hostTarget,
    Poco::UInt16 hostPort,
    const Properties & txtRecord
);

Creates the ResolvedServiceInfo.

Destructor

~ResolvedServiceInfo

~ResolvedServiceInfo();

Destroys the ResolvedServiceInfo.

Member Functions

fullServiceName inline

const std::string & fullServiceName() const;

Returns the full service name with correct character escaping. The fullname will be formatted like: shortName.regType.domain

hostPort inline

Poco::UInt16 hostPort() const;

Returns the port on which the service is available.

hostTarget inline

const std::string & hostTarget() const;

Returns the target machine the service is running on.

networkInterface inline

Poco::Int32 networkInterface() const;

The id of the interface on which the remote service is running

properties inline

const Properties & properties() const;

Returns the parsed txtRecord

serviceRef inline

DNSServiceRef serviceRef() const;

The reference to the service.