mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
LookupServer: Move into LookupServer
namespace
This commit is contained in:
parent
7e9122950e
commit
314f966745
Notes:
sideshowbarker
2024-07-18 22:34:20 +09:00
Author: https://github.com/bugaevc
Commit: 314f966745
Pull-request: https://github.com/SerenityOS/serenity/pull/5238
Reviewed-by: https://github.com/alimpfard
10 changed files with 37 additions and 1 deletions
|
@ -27,6 +27,8 @@
|
|||
#include "DNSAnswer.h"
|
||||
#include <time.h>
|
||||
|
||||
namespace LookupServer {
|
||||
|
||||
DNSAnswer::DNSAnswer(const String& name, u16 type, u16 class_code, u32 ttl, const String& record_data)
|
||||
: m_name(name)
|
||||
, m_type(type)
|
||||
|
@ -44,3 +46,5 @@ bool DNSAnswer::has_expired() const
|
|||
{
|
||||
return time(nullptr) >= m_expiration_time;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue