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_SetSendSplitMax</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13<a name="dwc__transport_8h_125d7a93f442305b24c4ccf9c7cdd1251"></a>
14<h1 align="left">DWC_SetSendSplitMax</h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;dwc.h&gt;</CODE><BR>
20  <BR>
21  <PRE><CODE>BOOL <a href=DWC_SetSendSplitMax.html#dwc__transport_8h_125d7a93f442305b24c4ccf9c7cdd1251>DWC_SetSendSplitMax</a>(u16 sendSplitMax);</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>sendSplitMax</STRONG></EM></TD>
31<TD width="87%">Maximum data size that can be sent in one data send.</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>TRUE</STRONG></EM></TD>
44<TD width="87%">Configuration was a success.</TD>
45    </TR>
46
47    <TR>
48<TD width="13%"><EM><STRONG>FALSE</STRONG></EM></TD>
49<TD width="87%">The configuration failed because the FriendsMatch Library was not running.</TD>
50    </TR>
51
52  </TBODY>
53</TABLE>
54
55<H2>Description</H2>
56<p>Sets the maximum data size that can be sent to the connected host at one time. When using Reliable send with the <a href="DWC_SendReliable.html"><CODE>DWC_SendReliable</CODE></a> or <A href="DWC_SendReliableBitmap.html"><CODE>DWC_SendReliableBitmap</CODE></a> functions to send data larger than this size, the send data is split and any data that cannot be sent completely is saved, unchanged. As soon as space is available in the send buffer for which the size was specified with the <A href="DWC_InitFriendsMatch.html"><CODE>DWC_InitFriendsMatch</CODE></a> function, the data is sent from within the <A href="DWC_ProcessFriendsMatch.html"><CODE>DWC_ProcessFriendsMatch</CODE></a> function.</p><p>When using Unreliable send with the <A href="DWC_SendUnreliable.html"><CODE>DWC_SendUnreliable</CODE></a> or <A href="DWC_SendUnreliableBitmap.html"><CODE>DWC_SendUnreliableBitmap</CODE></a> functions to send data larger than this size, the data cannot be sent and FALSE is returned.</p><p>The default maximum send size is 1465 bytes (as defined by <CODE><a href=Macro.html#dwc__transport_8h_15afc6b8c4764f11e8913120657af5865>DWC_TRANSPORT_SEND_MAX</a></CODE>).<BR>Do not exceed this size in settings, as it was determined to support the settings of various communications devices.</p><p>When the Reliable send/receive buffer size is set smaller with the <A href="DWC_InitFriendsMatch.html"><CODE>DWC_InitFriendsMatch</CODE></a> function, you can use this function to adjust the maximum send data size to prevent buffer overflow.</p>
57
58<H2>Revision History</H2>
59<DL>
60
61</DL>
62<hr><p>CONFIDENTIAL</p></body>
63</html>
64