Jump to: navigation, search

Table of Contents >> Programmer's Reference

#include <trsocket.h>

int tfUseInterfaceCacheFlushFunc (
ttUserInterface interfaceHandle,
ttDevCacheMgmtFuncPtr cacheFlushFuncPtr,,
ttUserGenericUnion userParam

Function Description

This function is used to register a “cache flush” callback function with the given interface. The stack will call the callback when it needs to flush a packet buffer.


  • interfaceHandle
    Handle to the interface to use this callback on.
  • cacheFlushFuncPtr
    Callback function to be used when the stack needs to flush a packet buffer. See ttDevCacheMgmtFunc definition for callback function definition.
  • userParam
    This value is saved on the interface and passed to the registered callback function each time it is called. It is provided for the user’s convenience and does not have to be set to a meaningful value if not needed.


    Error in parameter.
    Device already opened or wrong link layer type.

Table of Contents >> Programmer's Reference