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:
parent
d0559c0e27
commit
fe2fa4ac80
8 changed files with 358 additions and 0 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue