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_SetSendDelay</title> 9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13<a name="dwc__transport_8h_1dfda91378eecbaadf748534090fad27c"></a> 14<h1 align="left">DWC_SetSendDelay</h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <dwc.h></CODE><BR> 20 <BR> 21 <PRE><CODE>BOOL <a href=DWC_SetSendDelay.html#dwc__transport_8h_1dfda91378eecbaadf748534090fad27c>DWC_SetSendDelay</a>(u16 delay, 22 u8 aid);</CODE></PRE></dd> 23</dl> 24 25<h2>Arguments</h2> 26 27<TABLE border="1" width="100%"> 28 <TBODY> 29 30 <TR> 31<TD width="13%"><EM><STRONG>delay</STRONG></EM></TD> 32<TD width="87%">Delay time (milliseconds).</TD> 33 </TR> 34 35 <TR> 36<TD width="13%"><EM><STRONG>aid</STRONG></EM></TD> 37<TD width="87%">AID of the send destination.</TD> 38 </TR> 39 40 </TBODY> 41</TABLE> 42 43<h2>Return Values</h2> 44 45<TABLE border="1" width="100%"> 46 <TBODY> 47 48 <TR> 49<TD width="13%"><EM><STRONG>TRUE</STRONG></EM></TD> 50<TD width="87%">The delay time was successfully configured.</TD> 51 </TR> 52 53 <TR> 54<TD width="13%"><EM><STRONG>FALSE</STRONG></EM></TD> 55<TD width="87%">Not successfully configured because the FriendsMatch Library was not running, an invalid AID was specified, or there was a failure during memory allocation.</TD> 56 </TR> 57 58 </TBODY> 59</TABLE> 60 61<H2>Description</H2> 62<p>This function sets the delay time for data sends using the <A href="DWC_SendReliable.html"><CODE>DWC_SendReliable</CODE></A>, <A href="DWC_SendReliableBitmap.html"><CODE>DWC_SendReliableBitmap</CODE></A>, <A href="DWC_SendUnreliable.html"><CODE>DWC_SendUnreliable</CODE></A>, or <A href="DWC_SendUnreliableBitmap.html"><CODE>DWC_SendUnreliableBitmap</CODE></A> functions.</p><p>Sending of data is delayed by allocating (<CODE>Alloc</CODE>) a buffer each time data is sent and then sending data after waiting the specified time. Therefore, if a connection is cut when the application has sent all of the data, data waiting in the buffer will be lost without being sent.</p><p>The same kind of delay debugging can be done by setting the receive delay; use the <CODE><A href="DWC_SetRecvDelay.html">DWC_SetRecvDelay</A></CODE> function for that. This function is used for debugging. It does not function in the final ROM version (<CODE>FINALROM</CODE>).</p> 63 64<H2>Revision History</H2> 65<DL> 66 67</DL> 68<hr><p>CONFIDENTIAL</p></body> 69</html> 70