(Page 24 of 26 in this chapter)


cpi_wait_msg

Description

Waits millisecs amount of time and returns a packet if one is received.

Prototype

#include <txcpi.h>

short cpi_wait_msg (TX_HANDLE handle,

CPIPKT *buffer,

short *len,

long millisecs)

Return Values

Details

cpi_wait_msg recovers received packets from the channel associated with handle. Upon entry, len contains the size of the buffer. If there is a packet to receive, the length will be placed in len and the packet will be placed in buffer.



(Page 24 of 26 in this chapter)


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