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:
parent
7e9122950e
commit
314f966745
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