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

Userland: Rename Core::Object to Core::EventReceiver

This is a more precise description of what this class actually does.
This commit is contained in:
Andreas Kling 2023-08-06 18:09:39 +02:00 committed by Jelle Raaijmakers
parent bdf696e488
commit ddbe6bd7b4
128 changed files with 399 additions and 401 deletions

View file

@ -13,7 +13,7 @@ namespace LookupServer {
using namespace DNS;
DNSServer::DNSServer(Object* parent)
DNSServer::DNSServer(Core::EventReceiver* parent)
: Core::UDPServer(parent)
{
bind(IPv4Address(), 53);

View file

@ -14,7 +14,7 @@ class DNSServer : public Core::UDPServer {
C_OBJECT(DNSServer)
private:
explicit DNSServer(Object* parent = nullptr);
explicit DNSServer(Core::EventReceiver* parent = nullptr);
ErrorOr<void> handle_client();
};

View file

@ -9,8 +9,8 @@
#include "ConnectionFromClient.h"
#include "DNSServer.h"
#include "MulticastDNS.h"
#include <LibCore/EventReceiver.h>
#include <LibCore/FileWatcher.h>
#include <LibCore/Object.h>
#include <LibDNS/Name.h>
#include <LibDNS/Packet.h>
#include <LibIPC/MultiServer.h>
@ -19,7 +19,7 @@ namespace LookupServer {
using namespace DNS;
class LookupServer final : public Core::Object {
class LookupServer final : public Core::EventReceiver {
C_OBJECT(LookupServer);
public:

View file

@ -20,7 +20,7 @@
namespace LookupServer {
MulticastDNS::MulticastDNS(Object* parent)
MulticastDNS::MulticastDNS(Core::EventReceiver* parent)
: Core::UDPServer(parent)
, m_hostname("courage.local")
{

View file

@ -24,7 +24,7 @@ public:
ErrorOr<Vector<Answer>> lookup(Name const&, RecordType record_type);
private:
explicit MulticastDNS(Object* parent = nullptr);
explicit MulticastDNS(Core::EventReceiver* parent = nullptr);
void announce();
ErrorOr<size_t> emit_packet(Packet const&, sockaddr_in const* destination = nullptr);