2026-08-18 18:11:33 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-01-18 20:35:03 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
|
2020-11-26 15:19:08 -05:00
|
|
|
namespace Core {
|
|
|
|
|
class System;
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
namespace Service::Sockets {
|
2018-01-18 20:35:03 +01:00
|
|
|
|
|
|
|
|
class SFDNSRES final : public ServiceFramework<SFDNSRES> {
|
|
|
|
|
public:
|
2020-11-26 15:19:08 -05:00
|
|
|
explicit SFDNSRES(Core::System& system_);
|
2018-09-10 21:20:52 -04:00
|
|
|
~SFDNSRES() override;
|
2018-01-18 20:35:03 +01:00
|
|
|
|
|
|
|
|
private:
|
2023-06-19 18:17:43 -07:00
|
|
|
void GetHostByNameRequest(HLERequestContext& ctx);
|
2023-07-22 23:29:45 -04:00
|
|
|
void GetGaiStringErrorRequest(HLERequestContext& ctx);
|
2023-06-19 18:17:43 -07:00
|
|
|
void GetHostByNameRequestWithOptions(HLERequestContext& ctx);
|
2023-02-19 14:42:12 -05:00
|
|
|
void GetAddrInfoRequest(HLERequestContext& ctx);
|
|
|
|
|
void GetAddrInfoRequestWithOptions(HLERequestContext& ctx);
|
2023-06-19 18:17:43 -07:00
|
|
|
void ResolverSetOptionRequest(HLERequestContext& ctx);
|
2018-01-18 20:35:03 +01:00
|
|
|
};
|
|
|
|
|
|
2026-08-18 18:11:33 +02:00
|
|
|
class DNS_PRIV final : public ServiceFramework<DNS_PRIV> {
|
|
|
|
|
public:
|
|
|
|
|
explicit DNS_PRIV(Core::System& system_);
|
|
|
|
|
~DNS_PRIV() override;
|
|
|
|
|
};
|
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
} // namespace Service::Sockets
|