VCT_HandleData

Syntax

#include <vct.h>
BOOL VCT_HandleData ( u8 aid, u8 *buffer, int size );  

Argument

aid AID of transmitting client.
buffer Received data.
size Size of received data.

Return Value

TRUE Received data is for VoiceChat Library.
FALSE Received data is not for VoiceChat Library or VoiceChat Library is not initialized.

Description

VCT_HandleData processes the VoiceChat Library data and is called in the callback specified by DWC_SetUserRecvCallback.

For a buffer argument, the data delivered from DWC_SetUserRecvCallback must be specified. For size, the number of bytes must be specified.

If the return value is TRUE (received data is for VoiceChat Library), no additional processing is required because this function specifically calls a callback function. If the return value is FALSE, the data is used for something other than VoiceChat Library, such as game data. In the case of a FALSE return value, the function required to process the specific data should be implemented.

See Also

VCT_Cleanup, VCTConfig

Revision History

2006/01/25 First release