1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
8<title>DWC_CloseConnectionHard</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13<a name="dwc__main_8h_1742cdeda8ac242740a5cf9fdccc76612"></a>
14<h1 align="left">DWC_CloseConnectionHard</h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;dwc.h&gt;</CODE><BR>
20  <BR>
21  <PRE><CODE>int <a href=DWC_CloseConnectionHard.html#dwc__main_8h_1742cdeda8ac242740a5cf9fdccc76612>DWC_CloseConnectionHard</a>(u8 aid);</CODE></PRE></dd>
22</dl>
23
24<h2>Arguments</h2>
25
26<TABLE border="1" width="100%">
27  <TBODY>
28
29    <TR>
30<TD width="13%"><EM><STRONG>aid</STRONG></EM></TD>
31<TD width="87%">AID of the host to close.</TD>
32    </TR>
33
34  </TBODY>
35</TABLE>
36
37<h2>Return Values</h2>
38
39<TABLE border="1" width="100%">
40  <TBODY>
41
42    <TR>
43      <TD width="13%"><EM><STRONG>0</STRONG></EM></TD>
44<TD width="87%">Close operation complete.</TD>
45    </TR>
46
47    <TR>
48      <TD width="13%"><EM><STRONG>-1</STRONG></EM></TD>
49<TD width="87%">No action taken because the connection to the Wi-Fi Connection service has not been established or an error has occurred.</TD>
50    </TR>
51
52    <TR>
53      <TD width="13%"><EM><STRONG>-2</STRONG></EM></TD>
54<TD width="87%">No action taken because an already closed AID was specified.</TD>
55    </TR>
56
57  </TBODY>
58</TABLE>
59
60<H2>Description</H2>
61<p>Forcibly closes the connection with the specified AID. The close process completes within this function. The callback function set with the <A href="DWC_SetConnectionClosedCallback.html">DWC_SetConnectionClosedCallback</a> function is called before this function exits.</p><p>This host remains logged in to the Nintendo Wi-Fi Connection service.</p><p>The other host is notified of this closing and it calls the close callback <A href="DWCConnectionClosedCallback.html"><CODE>DWCConnectionClosedCallback</CODE></a>. However, because this close notification is only sent once over UDP, the notification may not reach its destination depending on connection conditions.</p><p>Use this function to handle unusual situations. For example, you can close the connection of a host if communication has become impossible because that host has been turned off.</p><p>If you use the <A href="DWC_CloseConnectionHardBitmap.html">DWC_CloseConnectionHardBitmap</a> function, you can close the connections to multiple AIDs.</p>
62
63<H2>Revision History</H2>
64<DL>
65
66</DL>
67<hr><p>CONFIDENTIAL</p></body>
68</html>
69