tfUserRegisterFilter

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfUserRegisterFilter (ttUserFilterCallback filterCallback);


Function Description

This function registers one user filter callback ttUserFilterCallback which is used for additional packet processing.

Usage

To register the user filter callback, create the appropriate context and supply the user-defined callback function in the format given by ttUserFilterCallback. Call tfUserRegisterFilter() with this function as a parameter. Use the new parameters for tfInterfaceSetOptions() to control interface-based enabling/disabling of filtering functionality.

Note Note: This user filter callback function cannot be replaced, however filtering can be enabled/disabled for each interface.


Returns

  • TM_ENOERROR
    The new filter was registered.
  • TM_EALREADY
    A filter has already been registered.


Table of Contents >> Programmer's Reference