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>WM_GetSharedDataAddress</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">WM_GetMPReceiveBufferSize <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></H1>
15<h2>Syntax</h2>
16<dl>
17  <dd><PRE><CODE>#include &lt;nitro/wm.h&gt;
18
19int WM_GetMPReceiveBufferSize( void );
20</CODE></PRE></dd>
21</dl>
22
23<h2>Arguments</h2>
24<P>None.</P>
25<h2>Return Values</h2>
26<p>Returns the size needed for the receive buffer passed as the argument of <A href="WM_StartMP.html"><code>WM_StartMP</code></A>.</p>
27
28<H2>Description</H2>
29<P>This function looks for the size that is needed for the receive buffer that the SDK uses internally for MP communication. This function can be executed only if the WM is in either the <A href="wm_state_diagram.html">PARENT</A> state or the <A href="wm_state_diagram.html">CHILD</A> state. </P>
30<P>On the child, the return value is calculated based on the externally obtained beacon information. Therefore, when using it to allocate memory for the receive buffer, be sure to either confirm that the return value of this function is an appropriate value or confirm that memory was successfully allocated after allocating the memory.</P>
31
32<h2>See Also</h2>
33<P><A href="WM_StartMP.html"><code>WM_StartMP</code></A>, <A href="WM_GetMPSendBufferSize.html"><code>WM_GetMPSendBufferSize</code></A></P>
34
35<H2>Revision History</H2>
36<P>
372005/12/21 Clearly stated that the value on the child should not be trusted.<BR>2004/08/18 Initial version.
38</P>
39<hr><p>CONFIDENTIAL</p></body>
40</html>
41