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>DWCConnectionClosedCallback</title> 9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13<a name="dwc__main_8h_137c062a13b38d3c691a1c3b1d7391657"></a> 14<h1 align="left">DWCConnectionClosedCallback</h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <dwc.h></CODE><BR> 20 <BR> 21 <PRE><CODE>typedef void(*) <a href=DWCConnectionClosedCallback.html#dwc__main_8h_137c062a13b38d3c691a1c3b1d7391657>DWCConnectionClosedCallback</a>(<a href=Macro.html#dwc__error_8h_1c049360b665a730f7f639f014a4fed19>DWCError</a> error, 22 BOOL isLocal, 23 BOOL isServer, 24 u8 aid, 25 int index, 26 void *param);</CODE></PRE></dd> 27</dl> 28 29<h2>Arguments</h2> 30 31<TABLE border="1" width="100%"> 32 <TBODY> 33 34 <TR> 35<TD width="13%"><EM><STRONG><parametername>error</parametername></STRONG></EM></TD> 36<TD width="87%">DWC error type.</TD> 37 </TR> 38 39 <TR> 40<TD width="13%"><EM><STRONG><parametername>isLocal</parametername></STRONG></EM></TD> 41<TD width="87%">TRUE: Closed by self.<BR> FALSE: Closed by someone else. <BR>TRUE results even if an unresponsive host is disconnected during matchmaking.</TD> 42 </TR> 43 44 <TR> 45<TD width="13%"><EM><STRONG><parametername>isServer</parametername></STRONG></EM></TD> 46<TD width="87%">TRUE: The server host performing server-client matchmaking has closed. TRUE also results when self is the server and <CODE>isLocal</CODE>=TRUE. <BR>FALSE: Other cases. FALSE is always returned in cases other than server-client matchmaking.</TD> 47 </TR> 48 49 <TR> 50<TD width="13%"><EM><STRONG><parametername>aid</parametername></STRONG></EM></TD> 51<TD width="87%">AID of the player whose connection was closed.</TD> 52 </TR> 53 54 <TR> 55<TD width="13%"><EM><STRONG><parametername>index</parametername></STRONG></EM></TD> 56<TD width="87%">Friend roster index of the player who closed the connection. If the player who closed the connection was not a friend, -1 results.</TD> 57 </TR> 58 59 <TR> 60<TD width="13%"><EM><STRONG><parametername>param</parametername></STRONG></EM></TD> 61<TD width="87%">Callback parameter.</TD> 62 </TR> 63 64 </TBODY> 65</TABLE> 66 67<h2>Return Values</h2> 68 69<p>None.</p> 70 71<H2>Description</H2> 72<p>This function is called each time a connection with another party is terminated.</p><p>This callback is set using <A href="DWC_SetConnectionClosedCallback.html">DWC_SetConnectionClosedCallback</a>.</p> 73 74<h2>See Also</h2> 75<p> 76 77<CODE><A href="DWC_SetConnectionClosedCallback.html">DWC_SetConnectionClosedCallback</A></CODE> 78 79</p> 80 81<H2>Revision History</H2> 82<DL> 83 84</DL> 85<hr><p>CONFIDENTIAL</p></body> 86</html> 87