sfdnsres.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "core/hle/ipc_helpers.h"
  5. #include "core/hle/service/sockets/sfdnsres.h"
  6. namespace Service::Sockets {
  7. void SFDNSRES::GetAddrInfo(Kernel::HLERequestContext& ctx) {
  8. IPC::RequestParser rp{ctx};
  9. LOG_WARNING(Service, "(STUBBED) called");
  10. IPC::ResponseBuilder rb{ctx, 2};
  11. rb.Push(RESULT_SUCCESS);
  12. }
  13. SFDNSRES::SFDNSRES() : ServiceFramework("sfdnsres") {
  14. static const FunctionInfo functions[] = {
  15. {0, nullptr, "SetDnsAddressesPrivate"},
  16. {1, nullptr, "GetDnsAddressPrivate"},
  17. {2, nullptr, "GetHostByName"},
  18. {3, nullptr, "GetHostByAddr"},
  19. {4, nullptr, "GetHostStringError"},
  20. {5, nullptr, "GetGaiStringError"},
  21. {6, &SFDNSRES::GetAddrInfo, "GetAddrInfo"},
  22. {7, nullptr, "GetNameInfo"},
  23. {8, nullptr, "RequestCancelHandle"},
  24. {9, nullptr, "CancelSocketCall"},
  25. {11, nullptr, "ClearDnsIpServerAddressArray"},
  26. };
  27. RegisterHandlers(functions);
  28. }
  29. SFDNSRES::~SFDNSRES() = default;
  30. } // namespace Service::Sockets