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 name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>MB_SetParentCommSize</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">MB_SetParentCommSize <IMG src="../../image/NTR.gif" width="24" height="12" border="0" align=middle><IMG src="../../image/TWL.gif" width="24" height="12" border="0" align=middle></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/mb.h></CODE><BR> <BR> <CODE>BOOL MB_SetParentCommSize( u16 sendSize );</CODE><br> <br> 20 </dd> 21</dl> 22<h2>Arguments</h2> 23<TABLE border="1" width="100%"> 24 <TBODY> 25 <TR> 26<TD width="13%"><EM><STRONG>sendSize</STRONG></EM></TD> 27<TD width="87%">Send buffer size (MB) for parent MP communication. This size must be greater than <a href="../mb_comm_parent_consts.html"><code>MB_COMM_PARENT_SEND_MIN</code></a> and less than <a href="../mb_comm_parent_consts.html"><code>MB_COMM_PARENT_SEND_MAX</code></a>.</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31<h2>Return Values</h2> 32<p>Returns <CODE>TRUE</CODE> if values are set in the correct range. Otherwise, returns <CODE>FALSE</CODE>.</p> 33 34<H2>Description</H2> 35<P>Specifies the size of the MB library's send for internally driven communication, including the maximum number of children. This function can be used to increase the efficiency of the MP communication packets when you already know the maximum number of connected devices. <BR>This function must be called after the <CODE><a href="../common/MB_Init.html">MB_Init</a></CODE> function and before the <CODE><A href="MB_StartParent.html">MB_StartParent</A></CODE> function.<BR><br> This function is the same as the <a href="MB_SetParentCommParam.html"><code>MB_SetParentCommParam</code></a> function except it preserves the currently set maximum number of connected children. Note that you cannot use this function to change the parent receive size.<BR> 36</p> 37<h2>See Also</h2> 38<p><code><a href="../mb_comm_parent_consts.html">MB_COMM_PARENT_*</a><BR> <a href="../mb_user_info_type.html">MBUserInfo</a><BR> <a href="../common/MB_Init.html">MB_Init</a><BR> <a href="MB_SetParentCommParam.html">MB_SetParentCommParam</a><BR> <a href="../parent/MB_StartParent.html">MB_StartParent</a><BR> <a href="../parent/MB_RegisterFile.html">MB_RegisterFile</a></code></P> 39<H2>Revision History</H2> 40<P>2004/11/18 Discontinued the <b><i><code>recvSize</code></i></b> argument.<br> 2004/10/05 Initial version. 41</P> 42<hr><p>CONFIDENTIAL</p></body> 43</html> 44