#include <dwc.h>
int DWC_CloseAllConnectionsHard( void );
Closes all connections with connected hosts. The close process completes within this function. Before the function exits, the callback function set with DWC_SetConnectionClosedCallback is called every time a connection is closed.
Remains logged into the Nintendo Wi-Fi Connection service.
The other host is notified of this closing, and the close callback DWCConnectionClosedCallback is called on that host. However, because this close notification is only sent once over UDP, the notification may not reach its destination due to the connection conditions.
This function is called even if a DS is not already connected to the server DS running client-server matchmaking. In this case, if there is remaining space in the memory region used for matchmaking, it is released and the system returns its own state to online. (For more about "communications status," see the description of the DWC_GetFriendStatus function.)
Even if this function is called, the connection with the Nintendo Wi-Fi Connection server is not cut. If a server DS uses server-client matchmaking and no host is connected, no callback is called and only the completion process is performed.
None.
0 |
Close operation complete. |
1 |
Close processing is performed, but because there are no connected hosts, the callback is not called. Only for a server DS performing server-client matchmaking. |
-1 |
No action is taken because the connection to the Wi-Fi Connection service has not been established or an error has occurred. |
DWC_CloseConnectionHard
DWC_CloseConnectionHardBitmap
DWC_SetConnectionClosedCallback
DWC_GetFriendStatus
DWCConnectionClosedCallback
2005/12/16 Described the function in detail.
2005/11/07 Initial version.
CONFIDENTIAL