*/
long gethostid(void);
+int SOCU_ShutdownSockets();
+
+int SOCU_CloseSockets();
--- /dev/null
+#include "soc_common.h"
+#include <3ds/ipc.h>
+#include <3ds/result.h>
+
+int SOCU_CloseSockets()
+{
+ u32 *cmdbuf = getThreadCommandBuffer();
+
+ cmdbuf[0] = IPC_MakeHeader(0x21,0,2); // 0x210002;
+ cmdbuf[1] = IPC_Desc_CurProcessHandle();
+
+ int ret = svcSendSyncRequest(SOCU_handle);
+ if(R_FAILED(ret))return ret;
+ return cmdbuf[1];
+}
--- /dev/null
+#include "soc_common.h"
+#include <3ds/ipc.h>
+#include <3ds/result.h>
+
+int SOCU_ShutdownSockets()
+{
+ u32 *cmdbuf = getThreadCommandBuffer();
+
+ cmdbuf[0] = IPC_MakeHeader(0x19,0,0); // 0x190000
+
+ int ret = svcSendSyncRequest(SOCU_handle);
+ if(R_FAILED(ret))return ret;
+ return cmdbuf[1];
+}