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 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>WBT_MpParentSendHook</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">WBT_MpParentSendHook <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/wbt.h></CODE><BR> <BR> <CODE>int WBT_MpParentSendHook(void *sendbuf, int send_size);</CODE><br> <br> 20 </dd> 21</dl> 22<h2>Arguments</h2> 23<p> 24<TABLE border="1" width="100%"> 25 <TBODY> 26 <TR> 27<TD width="13%"><CODE>sendbuf</CODE></TD> 28<TD width="87%">Parent's send buffer, used for WBT by functions such as <a href="../../wm/wm/WM_SetMPDataToPort.html">WM_SetMPDataToPort</a> during MP communications.</TD> 29 </TR> 30 <TR> 31<TD width="13%"><CODE>send_size</CODE></TD> 32<TD width="87%"><CODE>sendbuf</CODE> parent packet size allocated for WBT. This value must be larger than <CODE>WBT_PACKET_SIZE_MIN</CODE>.</TD> 33 </TR> 34 </TBODY> 35</TABLE> 36</p> 37 38<h2>Return Values</h2> 39<p>Returns the byte size stored by the actual data to send.</p> 40 41<H2>Description</H2> 42<P>Stores in the send buffer the data the WBT library parent sends by MP communication. Data based on the WBT library protocol is set in the send buffer. Various commands are executed by repeating this function during the MP transmission. <B>Note:</B> This function merely stores data in the buffer. After this, send the buffer using a function such as <A href="../../wm/wm/WM_SetMPDataToPort.html"><code>WM_SetMPDataToPort</code></A>.)<br> <br> When data receipt is requested by <A href="../command/WBT_GetBlock.html"><code>WBT_GetBlock</code></A> from any communication destination, a <A href="../wbt_command_type_const.html"><code>WBT_CMD_PREPARE_SEND_DATA</code></A> callback may be generated in this call, depending on settings. <br> 43<h2>See Also</h2> 44<p> 45<A href="WBT_MpParentRecvHook.html"><CODE>WBT_MpParentRecvHook</CODE></A> 46</P> 47<H2>Revision History</H2> 48<P> 492005/03/14 Corrected link destination error.<br /> 2005/02/18 Added cautionary notes about the relationship with the WM library.<br /> 2004/09/31 Initial version 50</P> 51<hr><p>CONFIDENTIAL</p></body> 52</html> 53