ot::Srp::Server::SetDomain() method
Sets the domain on the SRP server. A trailing dot will be appended to @p aDomain if it is not already there. Should only be called before the SRP server is enabled.
Arguments
aDomain
The domain to be set. MUST NOT be `nullptr`.
Return value
kErrorNone Successfully set the domain to @p aDomain. kErrorInvalidState The SRP server is already enabled and the Domain cannot be changed. kErrorInvalidArgs The argument @p aDomain is not a valid DNS domain name. kErrorNoBufs There is no memory to store content of @p aDomain.
ot::Srp::Server::SetDomain() is called by 1 function and calls 1 function:
![]()
ot::Srp::Server::SetDomain()
ot::Srp::Server::SetDomain() reads 6 variables:
![]()
ot::Srp::Server::SetDomain()