RAVENNAKIT
Loading...
Searching...
No Matches
rav::dnssd::ServiceDescription Struct Reference

A struct containing data which represents a service on the network. More...

#include <dnssd_service_description.hpp>

Public Member Functions

bool resolved () const
 Returns whether this service has been resolved.
std::string to_string () const noexcept
 Returns a description of this struct, which might be handy for debugging or logging purposes.

Public Attributes

std::string fullname
 The full service domain name.
std::string name
 The name of the service.
std::string reg_type
 The type of the service (ie. _http._tcp.).
std::string domain
 The domain of the service (local.).
std::string host_target
 The host target of the service (name.local.).
uint16_t port {}
 The port of the service (in native endian).
TxtRecord txt
 The TXT record of the service, represented as a map of keys and values.
std::map< uint32_t, std::set< std::string > > interfaces
 The resolved addresses of this service.

Detailed Description

A struct containing data which represents a service on the network.

Definition at line 16 of file dnssd_service_description.hpp.

Member Function Documentation

◆ resolved()

bool rav::dnssd::ServiceDescription::resolved ( ) const
nodiscard

Returns whether this service has been resolved.

Returns
True if the service has been resolved, false otherwise.

◆ to_string()

std::string rav::dnssd::ServiceDescription::to_string ( ) const
nodiscardnoexcept

Returns a description of this struct, which might be handy for debugging or logging purposes.

Member Data Documentation

◆ domain

std::string rav::dnssd::ServiceDescription::domain

The domain of the service (local.).

Definition at line 27 of file dnssd_service_description.hpp.

◆ fullname

std::string rav::dnssd::ServiceDescription::fullname

The full service domain name.

Definition at line 18 of file dnssd_service_description.hpp.

◆ host_target

std::string rav::dnssd::ServiceDescription::host_target

The host target of the service (name.local.).

Definition at line 30 of file dnssd_service_description.hpp.

◆ interfaces

std::map<uint32_t, std::set<std::string> > rav::dnssd::ServiceDescription::interfaces

The resolved addresses of this service.

Definition at line 39 of file dnssd_service_description.hpp.

◆ name

std::string rav::dnssd::ServiceDescription::name

The name of the service.

Definition at line 21 of file dnssd_service_description.hpp.

◆ port

uint16_t rav::dnssd::ServiceDescription::port {}

The port of the service (in native endian).

Definition at line 33 of file dnssd_service_description.hpp.

◆ reg_type

std::string rav::dnssd::ServiceDescription::reg_type

The type of the service (ie. _http._tcp.).

Definition at line 24 of file dnssd_service_description.hpp.

◆ txt

TxtRecord rav::dnssd::ServiceDescription::txt

The TXT record of the service, represented as a map of keys and values.

Definition at line 36 of file dnssd_service_description.hpp.


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