Jump to: navigation, search

Table of Contents >> Programmer's Reference

#include <trsocket.h>

char * tfGetEthernetBuffer (ttUserBufferPtr userBufferPtr);

Function Description

This function is used to get a buffer from the system for the user to use for an Ethernet device. The data pointer is offset by two bytes to allow the data portion to be long word aligned. It is not required for a user to use our buffer pool because some devices may not support it.


  • ttUserBufferPtr
    A pointer to a ttUserBuffer variable that the user buffer handle is stored.


  • char *
    A (char *) to the beginning of the data area to store the received data into.
  • NULL
    Failure: No memory to complete the operation.

Table of Contents >> Programmer's Reference