Difference between revisions of "ACI:GetConnectingNetworkMtu"
Jump to navigation
Jump to search
Line 29: | Line 29: | ||
Handle share_ac_handle; | Handle share_ac_handle; | ||
+ | |||
u32* cmdbuf = getThreadCommandBuffer(); | u32* cmdbuf = getThreadCommandBuffer(); | ||
srvGetServiceHandle(&share_ac_handle, "ac:i"); | srvGetServiceHandle(&share_ac_handle, "ac:i"); | ||
+ | |||
cmdbuf[0] = IPC_MakeHeader(0x4A2, 0, 0); // 0x04A20000 | cmdbuf[0] = IPC_MakeHeader(0x4A2, 0, 0); // 0x04A20000 | ||
Revision as of 15:15, 4 November 2019
Request
Index Word | Description |
---|---|
0 | Header code [0x04A20000] |
Response
Index Word | Description |
---|---|
1 | Result code |
2 | MTU value. |
Description
If 3DS is connected to Internet return current access point MTU value. If 3DS isn't connected to Internet return last connected access point MTU value.(If 3DS has never connected any access point return 0)
Example
Handle share_ac_handle;
u32* cmdbuf = getThreadCommandBuffer();
srvGetServiceHandle(&share_ac_handle, "ac:i");
cmdbuf[0] = IPC_MakeHeader(0x4A2, 0, 0); // 0x04A20000
svcSendSyncRequest(share_ac_handle);
printf("MTU value : %ld", cache_buffer[2]);