tfHttpdUserInit
Table of Contents >> Application Reference >> Web Server
#include <trsocket.h> |
int tfHttpdUserInit | (ttUser16Bit maxNumberServers); |
Function Description
This function initializes the Web server, and establishes the maximum number of webservers. It is called once before any other HTTPD functions.
Parameters
- maxNumberServers
- The maximum number of web servers, 0 means system limit.
Returns
- TM_ENOERROR
- Success
- TM_ENOPERM
- Too many servers requested.
- TM_ENOBUFS
- Could not allocate a web server array.
- TM_EALREADY
- tfHttpdUserInit has already been called successfully.
- TM_EINVAL
- maxNumberServers is bigger than tvHttpdUpperMaxNumberServers (default value is 10, see TM_HTTPD_DEF_MAX_SERVERS).