soc_u.cpp 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "common/log.h"
  5. #include "core/hle/hle.h"
  6. #include "core/hle/service/soc_u.h"
  7. ////////////////////////////////////////////////////////////////////////////////////////////////////
  8. // Namespace SOC_U
  9. namespace SOC_U {
  10. const Interface::FunctionInfo FunctionTable[] = {
  11. {0x00010044, nullptr, "InitializeSockets"},
  12. {0x000200C2, nullptr, "socket"},
  13. {0x00030082, nullptr, "listen"},
  14. {0x00040082, nullptr, "accept"},
  15. {0x00050084, nullptr, "bind"},
  16. {0x00060084, nullptr, "connect"},
  17. {0x00070104, nullptr, "recvfrom_other"},
  18. {0x00080102, nullptr, "recvfrom"},
  19. {0x00090106, nullptr, "sendto_other"},
  20. {0x000A0106, nullptr, "sendto"},
  21. {0x000B0042, nullptr, "close"},
  22. {0x000C0082, nullptr, "shutdown"},
  23. {0x000D0082, nullptr, "gethostbyname"},
  24. {0x000E00C2, nullptr, "gethostbyaddr"},
  25. {0x000F0106, nullptr, "unknown_resolve_ip"},
  26. {0x00110102, nullptr, "getsockopt"},
  27. {0x00120104, nullptr, "setsockopt"},
  28. {0x001300C2, nullptr, "fcntl"},
  29. {0x00140084, nullptr, "poll"},
  30. {0x00150042, nullptr, "sockatmark"},
  31. {0x00160000, nullptr, "gethostid"},
  32. {0x00170082, nullptr, "getsockname"},
  33. {0x00180082, nullptr, "getpeername"},
  34. {0x00190000, nullptr, "ShutdownSockets"},
  35. {0x001A00C0, nullptr, "GetNetworkOpt"},
  36. {0x001B0040, nullptr, "ICMPSocket"},
  37. {0x001C0104, nullptr, "ICMPPing"},
  38. {0x001D0040, nullptr, "ICMPCancel"},
  39. {0x001E0040, nullptr, "ICMPClose"},
  40. {0x001F0040, nullptr, "GetResolverInfo"},
  41. {0x00210002, nullptr, "CloseSockets"},
  42. };
  43. ////////////////////////////////////////////////////////////////////////////////////////////////////
  44. // Interface class
  45. Interface::Interface() {
  46. Register(FunctionTable, ARRAY_SIZE(FunctionTable));
  47. }
  48. } // namespace