<< Previous | Next >>

cof_pktXreceive

int cof_pktXreceive( void * buffer, int buffer_size ); /* X is A-F */

Description

Receives an incoming packet. This function returns after a complete packet has been read into the buffer.

The functions cof_pktEreceive() and cof_pktFreceive() are available when using the Rabbit 3000 or Rabbit 4000.

Parameters

buffer
A buffer for the packet to be written into.

buffer_size
Length of the buffer.

Return value

>0: The number of bytes in the received packet on success.
 0: No new packets have been received.
-1: The packet is too large for the given buffer.
-2: A needed test_packet function is not defined.

Library

PACKET.LIB


Dynamic C Functions << Previous | Next >> rabbit.com