tfFreeZeroCopyBuffer

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfFreeZeroCopyBuffer (ttUserMessage bufferHandle);


Function Description

This function is used to free a zero copy buffer that was allocated via tfGetZeroCopyBuffer(), tfZeroCopyRecv(), or tfZeroCopyRecvFrom().


Parameters

  • bufferHandle
    The buffer handle of the buffer to free.


Returns

  • TM_ENOERROR
    Success.
  • TM_SOCKET_ERROR
    Failure. The buffer did not belong to the user or 'bufferHandle' was invalid.


Table of Contents >> Programmer's Reference