(Page 10 of 26 in this chapter)


cpi_get_data

Description

Recovers received packets from the channel associated with handle.

Prototype

#include <txcpi.h>

short cpi_get_data (TX_HANDLE handle, CPIPKT *buffer, short *len)

Return Values

Details

Upon entry the user specifies the length of the buffer in the len parameter. The function will return CPI_SUCCESS and len will be set to zero if there is no packet to receive. If there is a packet, the length will be placed in len and the packet will be copied into the buffer specified by the user.



(Page 10 of 26 in this chapter)


tech_support@nmss.com
Copyright © 1999, Natural MicroSystems, Inc. All rights reserved.