mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +00:00
LookupServer: Introduce DNSName
This is a wrapper around a string representing a domain name (such as "example.com"). It never has a trailing dot. For now, this class doesn't do much except wrap the raw string. Subsequent commits will add or move more functionality to it.
This commit is contained in:
parent
de811faf55
commit
ae1e82fd2f
Notes:
sideshowbarker
2024-07-18 22:17:19 +09:00
Author: https://github.com/bugaevc
Commit: ae1e82fd2f
Pull-request: https://github.com/SerenityOS/serenity/pull/5345
9 changed files with 117 additions and 38 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
namespace LookupServer {
|
||||
|
||||
DNSAnswer::DNSAnswer(const String& name, u16 type, u16 class_code, u32 ttl, const String& record_data)
|
||||
DNSAnswer::DNSAnswer(const DNSName& name, u16 type, u16 class_code, u32 ttl, const String& record_data)
|
||||
: m_name(name)
|
||||
, m_type(type)
|
||||
, m_class_code(class_code)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue