File Information
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.
- networkInterface specifies the index of the interface the error occured on.
- code contains the implementation-specific error code.
- message contains a human-readable error message.
Destructor
~Error
~Error();
Destroys the ServiceError.
Member Functions
code
Poco::Int32 code() const;
Returns the implementation-specific error code.
message
const std::string & message() const;
Returns the human-readable error message.
networkInterface
Poco::Int32 networkInterface() const;
Returns the network interface on which the error occurred.