tfHttpdUserSetCgiIdFunc
Table of Contents >> Application Reference >> Web Server
#include <trsocket.h> |
int tfHttpdUserSetCgiIdFunc | ( |
ttHttpdUserSrvHandle userSrvHandle, | |
ttHttpdUserCgiIdCBPtr funcPtr | |
); |
Function Description
Register a function for the web server to use to determine whether a page is CGI or static. This overrides the standard CGI identification method (see tfHttpdUserStart()). This function may be called multiple times to change the handler function. Setting the handler function back to 0 will cause the web server to begin using the standard CGI identification method again.
Parameters
- userSrvHandle
- Handler returned from tfHttpdUserStart()
- funcPtr
- User provided function that will determine whether a given path is a CGI page.
Returns
- TM_ENOERROR
- Successful
- TM_EINVAL
- Invalid server handle