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

DNSLookupServer: Start working on a userspace DNS resolver.

This doesn't have any server functionality just yet, but it does post
decent-looking DNS queries and parse the responses.
This commit is contained in:
Andreas Kling 2019-03-19 16:29:06 +01:00
parent d0559c0e27
commit fe2fa4ac80
8 changed files with 358 additions and 0 deletions

View file

@ -68,6 +68,11 @@ public:
ssize_t offset() const { return m_offset; }
void snip()
{
m_buffer.trim(m_offset);
}
private:
ByteBuffer& m_buffer;
ssize_t m_offset { 0 };