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.


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.


    The new filter was registered.
    A filter has already been registered.

Table of Contents >> Programmer's Reference