ESP-IDF
ot::Dns::ServiceDiscovery::Server::Response
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Methods
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Dns::ServiceDiscovery::Server::Response
ot::Dns::ServiceDiscovery::Server::Response class
Syntax
Show:
Summary
Declaration
from
dnssd_server.hpp:388
class
Response
:
public
InstanceLocator
,
private
NonCopyable
{
public
:
explicit
Response
(
Instance
&
aInstance
)
;
ResponseCode
AddQuestionsFrom
(
const
Request
&
aRequest
)
;
Error
AllocateAndInitFrom
(
const
Request
&
aRequest
)
;
void
InitFrom
(
ProxyQuery
&
aQuery
,
const
ProxyQueryInfo
&
aInfo
)
;
void
SetResponseCode
(
ResponseCode
aResponseCode
)
{
mHeader
.
SetResponseCode
(
aResponseCode
)
;
}
Error
ParseQueryName
(
void
)
;
void
ReadQueryName
(
Name
::
Buffer
&
aName
)
const
;
bool
QueryNameMatches
(
const
char
*
aName
)
const
;
Error
AppendQueryName
(
void
)
;
Error
AppendPtrRecord
(
const
char
*
aInstanceLabel
,
uint32_t
aTtl
)
;
Error
AppendSrvRecord
(
const
ServiceInstanceInfo
&
aInstanceInfo
)
;
Error
AppendSrvRecord
(
const
char
*
aHostName
,
uint32_t
aTtl
,
uint16_t
aPriority
,
uint16_t
aWeight
,
uint16_t
aPort
)
;
Error
AppendTxtRecord
(
const
ServiceInstanceInfo
&
aInstanceInfo
)
;
Error
AppendTxtRecord
(
const
void
*
aTxtData
,
uint16_t
aTxtLength
,
uint32_t
aTtl
)
;
Error
AppendHostAddresses
(
AddrType
aAddrType
,
const
HostInfo
&
aHostInfo
)
;
Error
AppendHostAddresses
(
const
ServiceInstanceInfo
&
aInstanceInfo
)
;
Error
AppendHostAddresses
(
AddrType
aAddrType
,
const
Ip6
::
Address
*
aAddrs
,
uint16_t
aAddrsLength
,
uint32_t
aTtl
)
;
Error
AppendAaaaRecord
(
const
Ip6
::
Address
&
aAddress
,
uint32_t
aTtl
)
;
Error
AppendARecord
(
const
Ip6
::
Address
&
aAddress
,
uint32_t
aTtl
)
;
void
UpdateRecordLength
(
ResourceRecord
&
aRecord
,
uint16_t
aOffset
)
;
void
IncResourceRecordCount
(
void
)
;
void
Send
(
const
Ip6
::
MessageInfo
&
aMessageInfo
)
;
void
Answer
(
const
HostInfo
&
aHostInfo
,
const
Ip6
::
MessageInfo
&
aMessageInfo
)
;
void
Answer
(
const
ServiceInstanceInfo
&
aInstanceInfo
,
const
Ip6
::
MessageInfo
&
aMessageInfo
)
;
Error
ExtractServiceInstanceLabel
(
const
char
*
aInstanceName
,
Name
::
LabelBuffer
&
aLabel
)
;
#if
OPENTHREAD_CONFIG_SRP_SERVER_ENABLE
Error
ResolveBySrp
(
void
)
;
bool
QueryNameMatchesService
(
const
Srp
::
Server
::
Service
&
aService
)
const
;
Error
AppendSrvRecord
(
const
Srp
::
Server
::
Service
&
aService
)
;
Error
AppendTxtRecord
(
const
Srp
::
Server
::
Service
&
aService
)
;
Error
AppendHostAddresses
(
const
Srp
::
Server
::
Host
&
aHost
)
;
#endif
#if
OPENTHREAD_CONFIG_DNSSD_DISCOVERY_PROXY_ENABLE
Error
AppendPtrRecord
(
const
ProxyResult
&
aResult
)
;
Error
AppendSrvRecord
(
const
ProxyResult
&
aResult
)
;
Error
AppendTxtRecord
(
const
ProxyResult
&
aResult
)
;
Error
AppendHostIp6Addresses
(
const
ProxyResult
&
aResult
)
;
Error
AppendHostIp4Addresses
(
const
ProxyResult
&
aResult
)
;
#endif
#if
OT_SHOULD_LOG_AT
(
OT_LOG_LEVEL_INFO
)
void
Log
(
void
)
const
;
static
const
char
*
QueryTypeToString
(
QueryType
aType
)
;
#endif
OwnedPtr
<
Message
>
mMessage
;
Header
mHeader
;
QueryType
mType
;
Section
mSection
;
NameOffsets
mOffsets
;
}
;
Fields
Field
Declared as
ot::Dns::ServiceDiscovery::Server::Response::mMessage
OwnedPtr
<
Message
>
ot::Dns::ServiceDiscovery::Server::Response::mHeader
Header
ot::Dns::ServiceDiscovery::Server::Response::mType
QueryType
ot::Dns::ServiceDiscovery::Server::Response::mSection
Section
ot::Dns::ServiceDiscovery::Server::Response::mOffsets
NameOffsets
Methods
AddQuestionsFrom()
AllocateAndInitFrom()
InitFrom()
SetResponseCode()
ParseQueryName()
ReadQueryName() const
QueryNameMatches() const
AppendQueryName()
AppendPtrRecord()
AppendSrvRecord()
AppendSrvRecord()
AppendTxtRecord()
AppendTxtRecord()
AppendHostAddresses()
AppendHostAddresses()
AppendHostAddresses()
AppendAaaaRecord()
AppendARecord()
UpdateRecordLength()
IncResourceRecordCount()
Send()
Answer()
Answer()
ExtractServiceInstanceLabel()
ResolveBySrp()
QueryNameMatchesService() const
AppendSrvRecord()
AppendTxtRecord()
AppendHostAddresses()
Log() const
QueryTypeToString()
Related Functions
Found 2 other functions taking a
Response
argument:
Function
ot::Dns::ServiceDiscovery::Server::ResolveByProxy()
ot::Dns::ServiceDiscovery::Server::RemoveQueryAndPrepareResponse()
Examples
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out