mirror of
https://github.com/RGBCube/serenity
synced 2025-07-14 07:47:34 +00:00

We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
32 lines
886 B
C++
32 lines
886 B
C++
/*
|
|
* Copyright (c) 2021, Sergey Bugaev <bugaevc@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/HashMap.h>
|
|
#include <LibIPC/ConnectionFromClient.h>
|
|
#include <LookupServer/LookupClientEndpoint.h>
|
|
#include <LookupServer/LookupServerEndpoint.h>
|
|
|
|
namespace LookupServer {
|
|
|
|
class ConnectionFromClient final
|
|
: public IPC::ConnectionFromClient<LookupClientEndpoint, LookupServerEndpoint> {
|
|
C_OBJECT(ConnectionFromClient);
|
|
|
|
public:
|
|
virtual ~ConnectionFromClient() override = default;
|
|
|
|
virtual void die() override;
|
|
|
|
private:
|
|
explicit ConnectionFromClient(NonnullOwnPtr<Core::Stream::LocalSocket>, int client_id);
|
|
|
|
virtual Messages::LookupServer::LookupNameResponse lookup_name(DeprecatedString const&) override;
|
|
virtual Messages::LookupServer::LookupAddressResponse lookup_address(DeprecatedString const&) override;
|
|
};
|
|
|
|
}
|