WFS_CallClientPacketSendHook

Syntax

#include <nitro/wfs.h>

void WFS_CallClientPacketSendHook(WFSClientContext *context, WFSPacketBuffer *packet);

Arguments

context Pointer to the WFSClientContext structure.
packet Pointer to the WFSPacketBuffer structure storing send packet information. The following information must be specified for each member.
buffer Buffer that stores packet data.
length Buffer size.
bitmap AID bitmap indicating clients that data can be sent to.
It is acceptable to always use 0x0001 (parent/server only) because you are sending from a child (client) to the parent (server).

Return Values

None. (The packet size that was actually generated is stored in the length member of the packet argument.)

Description

Converts internal WFS library protocol into packet data for a single MP communication session. Using this function to generate packet data and sending it with functions such as WM_SetMPDataToPort results in the WFS status of both parent and child being updated. Applications must call this function and perform MP communications repeatedly at an appropriate frequency.

See Also

WFS_CallClientConnectHook
WFS_CallClientDisconnectHook
WFS_CallClientPacketRecvHook

Revision History

2007/06/06 Initial version.


CONFIDENTIAL