Servus  1.5.1
C++ network oriented utilities including a zeroconf implementation
servus::Servus::Result Class Reference

The ZeroConf operation result code. More...

#include <servus.h>

+ Inheritance diagram for servus::Servus::Result:
+ Collaboration diagram for servus::Servus::Result:

Public Member Functions

 Result (const int32_t code)
 
virtual ~Result ()
 Destruct the result. More...
 
std::string getString () const override
 
- Public Member Functions inherited from servus::Result
 Result (const int32_t code)
 Construct a new result. More...
 
 operator bool_t () const
 
bool operator! () const
 
bool operator== (const int32_t code) const
 
bool operator!= (const int32_t code) const
 
int32_t getCode () const
 

Static Public Attributes

static const int32_t PENDING = -1
 operation did not complete. More...
 
static const int32_t NOT_SUPPORTED = -2
 Servus compiled without ZeroConf support. More...
 
static const int32_t POLL_ERROR = -3
 Error during polling for event. More...
 
- Static Public Attributes inherited from servus::Result
static const int32_t SUCCESS = 0
 

Additional Inherited Members

- Protected Attributes inherited from servus::Result
int32_t code_
 

Detailed Description

The ZeroConf operation result code.

The result code is either one of kDNSServiceErr_ or one of static constants defined by this class

Definition at line 62 of file servus.h.

Constructor & Destructor Documentation

virtual servus::Servus::Result::~Result ( )
inlinevirtual

Destruct the result.

Reimplemented from servus::Result.

Definition at line 69 of file servus.h.

Member Function Documentation

std::string servus::Servus::Result::getString ( ) const
overridevirtual
Returns
the result string.

Reimplemented from servus::Result.

Member Data Documentation

const int32_t servus::Servus::Result::NOT_SUPPORTED = -2
static

Servus compiled without ZeroConf support.

Definition at line 75 of file servus.h.

const int32_t servus::Servus::Result::PENDING = -1
static

operation did not complete.

Definition at line 73 of file servus.h.

const int32_t servus::Servus::Result::POLL_ERROR = -3
static

Error during polling for event.

Definition at line 77 of file servus.h.


The documentation for this class was generated from the following file: