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

LookupServer: Move DNS related code into new LibDNS library

This allows other code to use the DNSPacket class, e.g. when sent
over IPC.
This commit is contained in:
Tom 2022-04-12 23:25:07 -06:00 committed by Linus Groh
parent 0a92dbd390
commit be4a4144f2
17 changed files with 51 additions and 40 deletions

View file

@ -5,12 +5,14 @@
*/
#include "ConnectionFromClient.h"
#include "DNSPacket.h"
#include "LookupServer.h"
#include <AK/IPv4Address.h>
#include <LibDNS/DNSPacket.h>
namespace LookupServer {
using namespace DNS;
static HashMap<int, RefPtr<ConnectionFromClient>> s_connections;
ConnectionFromClient::ConnectionFromClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket, int client_id)