tfHttpdUserSetSsiFileFilter

Jump to: navigation, search

Table of Contents >> Application Reference >> Web Server


#include <trsocket.h>


int tfHttpdUserSetSsiFileFilter (
ttHttpdUserSrvHandle srvHandle,
ttUserConstCharPtr matchNamePtr,
int matchType
);


Function Description

Call this function to specify a SSI file filter. Multiple filters can be set by calling this function multiple times. A file that matches one of the filters will be parsed by the web server for SSI tags when served up. This function can be called any time after tfHttpdUserStart(). The user should call it before tfHttpdUserExecute() to ensure that it is in effect once the server is ready to serve files.


Parameters

  • srvHandle
    Handle to the HTTPD server returned by tfHttpdUserStart()
  • matchNamePtr
    A pointer to a null-terminated string that has a case-sensitive file name, file extension, full path to a file, directory name, or full path to a directory depending on the value of the parameter matchType. This parameter does not support regular expressions (i.e. wildcard match).
  • matchType
<tt>TM_FS_MATCH_FILE_NAME
File name
TM_FS_MATCH_FILE_EXT
File extension
TM_FS_MATCH_FILE_PATH
Full path to file
TM_FS_MATCH_DIR_NAME
Directory name
TM_FS_MATCH_DIR_PATH
Full path to a directory</tt>


Returns

  • TM_ENOERROR
    Success
  • TM_EINVAL
    matchNamePtr is NULL or matchType is an unknown value.


Table of Contents >> Application Reference >> Web Server