Poco::DNSSD

class Error

Library: DNSSD
Package: Core
Header: Poco/DNSSD/Error.h

Description

Error stores information about an error that occured during browsing or service registration.

Member Summary

Member Functions: code, message, networkInterface

Constructors

Error

Error();

Creates an uninitialized ServiceError.

Error

Error(
    Poco::Int32 networkInterface,
    Poco::Int32 code,
    const std::string & message
);

Creates the ServiceError using the given information.

Destructor

~Error

~Error();

Destroys the ServiceError.

Member Functions

code inline

Poco::Int32 code() const;

Returns the implementation-specific error code.

message inline

const std::string & message() const;

Returns the human-readable error message.

networkInterface inline

Poco::Int32 networkInterface() const;

Returns the network interface on which the error occurred.