tfFreeDriverBuffer
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.
| If the buffer has been given to the Treck stack the user no longer owns the buffer and should not call tfFreeDriverBuffer(). |
Parameters
- userBuffer
- A user buffer handle as stored by tfGetEthernetBuffer() or tfGetDriverBuffer().
Returns
- TM_ENOERROR
- Success.
- TM_DEV_ERROR
- Null user buffer handle or the user does not own the buffer.