summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/sockets/sfdnsres.cpp
diff options
context:
space:
mode:
authormailwl <mailwl@gmail.com>2018-01-30 07:29:47 +0100
committerbunnei <bunneidev@gmail.com>2018-01-30 07:29:47 +0100
commiteaa9f968a629b8743f22a2277a5332942a3cd9d9 (patch)
tree5d1747258e0f3419dffa4950031bf116d9971de0 /src/core/hle/service/sockets/sfdnsres.cpp
parentMerge pull request #151 from lioncash/catch (diff)
downloadyuzu-eaa9f968a629b8743f22a2277a5332942a3cd9d9.tar
yuzu-eaa9f968a629b8743f22a2277a5332942a3cd9d9.tar.gz
yuzu-eaa9f968a629b8743f22a2277a5332942a3cd9d9.tar.bz2
yuzu-eaa9f968a629b8743f22a2277a5332942a3cd9d9.tar.lz
yuzu-eaa9f968a629b8743f22a2277a5332942a3cd9d9.tar.xz
yuzu-eaa9f968a629b8743f22a2277a5332942a3cd9d9.tar.zst
yuzu-eaa9f968a629b8743f22a2277a5332942a3cd9d9.zip
Diffstat (limited to 'src/core/hle/service/sockets/sfdnsres.cpp')
-rw-r--r--src/core/hle/service/sockets/sfdnsres.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/core/hle/service/sockets/sfdnsres.cpp b/src/core/hle/service/sockets/sfdnsres.cpp
new file mode 100644
index 000000000..4d7bc7c3e
--- /dev/null
+++ b/src/core/hle/service/sockets/sfdnsres.cpp
@@ -0,0 +1,36 @@
+// Copyright 2018 yuzu emulator team
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/sockets/sfdnsres.h"
+
+namespace Service {
+namespace Sockets {
+
+void SFDNSRES::GetAddrInfo(Kernel::HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+
+ LOG_WARNING(Service, "(STUBBED) called");
+
+ IPC::ResponseBuilder rb{ctx, 2};
+
+ rb.Push(RESULT_SUCCESS);
+}
+
+SFDNSRES::SFDNSRES() : ServiceFramework("sfdnsres") {
+ static const FunctionInfo functions[] = {{0, nullptr, "SetDnsAddressesPrivate"},
+ {1, nullptr, "GetDnsAddressPrivate"},
+ {2, nullptr, "GetHostByName"},
+ {3, nullptr, "GetHostByAddr"},
+ {4, nullptr, "GetHostStringError"},
+ {5, nullptr, "GetGaiStringError"},
+ {6, &SFDNSRES::GetAddrInfo, "GetAddrInfo"},
+ {7, nullptr, "GetNameInfo"},
+ {8, nullptr, "RequestCancelHandle"},
+ {9, nullptr, "CancelSocketCall"}};
+ RegisterHandlers(functions);
+}
+
+} // namespace Sockets
+} // namespace Service