# WFS_CallServerPacketSendHook

## Syntax

  `#include <nitro/wfs.h>`
  `void WFS_CallServerPacketSendHook(WFSServerContext *context, WFSPacketBuffer *packet);`

## Arguments

`context` | Pointer to the `WFSServerContext` 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. This may always be set to `0xFFFF` if it does not particularly interfere with the application.

## 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_InitServer`
`WFS_CallServerConnectHook`
`WFS_CallServerDisconnectHook`
`WFS_CallServerPacketRecvHook`

## Revision History

2007/06/06 Initial version.

CONFIDENTIAL