1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

LookupServer: Move into LookupServer namespace

This commit is contained in:
Sergey Bugaev 2021-02-04 19:07:45 +03:00 committed by Andreas Kling
parent 7e9122950e
commit 314f966745
10 changed files with 37 additions and 1 deletions

View file

@ -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;
}
}