# WFS_CallServerPacketRecvHook

## Syntax

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

## Arguments

context | Pointer to the `WFSServerContext` structure.

packet

Pointer to the `WFSPacketBuffer` structure where the received packet data is stored.
The following data must be provided for each member.

buffer | Specifies the buffer for received packet data.
length | Specifies the amount of data received.
bitmap | Specifies an AID bitmap indicating which clients sent packets. This may always be set to (1 << aid) if no special management is required by the application.

## Return Values

None.

## Description

Converts the packet data received from a child (client) during a single session of MP communication into the internal protocol used by the WFS library. WFS status is updated between parents and children by using this function to analyze the packet data received by MP communications.
Applications must call this function and perform MP communications repeatedly at an appropriate frequency.

## See Also

WFS_InitServer, WFS_CallServerConnectHook, WFS_CallServerDisconnectHook, WFS_CallServerPacketSendHook

## Revision History

2007/06/06 Initial version.

CONFIDENTIAL