Poco::Zeroconf

class ServiceError

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

Description

Event Arguments for ServiceError

Member Summary

Member Functions: errorCode, networkInterface, serviceRef

Constructors

ServiceError

ServiceError();

Creates an uninitialized ServiceError. Required for async events.

ServiceError

ServiceError(
    DNSServiceRef sdRef,
    Poco::Int32 iface,
    Poco::Int32 errCode
);

Creates the ServiceError.

Destructor

~ServiceError

~ServiceError();

Destroys the ServiceError.

Member Functions

errorCode inline

Poco::Int32 errorCode() const;

Returns the error code. use Utility::toString to convert it to string format

networkInterface inline

Poco::Int32 networkInterface() const;

Returns the network interface on which the error occurred

serviceRef inline

DNSServiceRef serviceRef() const;

The reference to the service.