tfFreeDriverBuffer

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfFreeDriverBuffer (ttUserBuffer userBuffer);


Function Description

User frees a buffer that was allocated with either tfGetEthernetBuffer() or tfGetDriverBuffer() and was not given to the Treck stack.


Note Note: If the buffer has been given to the Treck stack the user no longer owns the buffer and should not call tfFreeDriverBuffer().


Parameters


Returns

  • TM_ENOERROR
    Success.
  • TM_DEV_ERROR
    Null user buffer handle or the user does not own the buffer.


Table of Contents >> Programmer's Reference