📄 wmw_httpconf.h
字号:
/* * wmw_httpconf.h * * This is a part of a Wind River Management SDK source code library. * * Copyright (C) 2005 Wind River Systems * Version 4.40 * All rights reserved. * *//* WARNING: This file will be generated by a Wind River Management Integration * Tool. Any changes made to this file may be overwritten by * subsequent uses of the tool. *//* - User configurable options of the Web server project. */#ifndef __WMW_HTTPCONF_H_HEADER__#define __WMW_HTTPCONF_H_HEADER__/* * configuration of Wind River Management Web Server parameters * please adjust these values very carefully *//* name of your www server */#define HTTP_SERVER_NAME "www.target.own"/* where to store your logfile (if using logging RPM) */#undef HTTP_LOG_FILE/* realm for basic authentication */#define HTTP_BASIC_REALM "EnchantedWorld"/* server identification string */#define HTTP_SERVER_IDENTIFICATION "WindRiver-WebServer/4.4"/* HTTP URI selection */#define HTTP_URI "http://"/* socket configuration */#define HTTP_PORT 80 /* TCP port for HTTP requests */#define HTTP_MAX_SOCK_BUFF 4096 /* Size of socket send/receive buffer */#define HTTP_SOCK_TIMEOUT 400 /* timeout (secs) for HTTP socket */#define HTTP_MAX_CONNECTIONS 10 /* Maximum Number of connections */#define HTTP_MAX_PORTS 2 /* Maximum number of ports */#define HTTP_SOCK_ARRAY HTTP_MAX_CONNECTIONS /* WM 4.2 socket compatibility *//* memory configuration */#define HTTP_MAX_GLOBAL_MEM_PART_SIZE 8192 /* # bytes of the global memory pool */#define HTTP_MAX_REQ_PART_SIZE 8192 /* # bytes of the request memory pool */#define HTTP_MAX_REQLINE_SIZE 256 /* # bytes of a request line (pool) */#define HTTP_MAX_ARGUMENTS 64 /* # of arguments in a get request */#define HTTP_MIME_MAXLINES 64 /* Maximum lines of incoming/outgoing HTTP header */#define HTTP_MAX_SENDCOOKIES 0 /* # of cookies to send per request */#define HTTP_MAX_RECCOOKIES 0 /* # of cookies to receive per request *//* task configuration */#define HTTP_PROCESS_PRIORITY 200 /* Priority of the daemon process */#define HTTP_MAX_PROCESSES 5 /* Number of daemon processes */#define HTTP_TASK_STACK_SIZE 5000 /* Size of the stack of every process */#define HTTP_NR_OF_TASKS HTTP_MAX_PROCESSES /* WM 4.2 socket compatibility *//* SSL configuration */#undef INCLUDE_OPENSSL_SUPPORT /* Enable SSL Support Code */#define HTTP_SSL_PORT 0 /* SSL port number */#define HTTP_SSL_CA_FILE "" /* SSL Certificate Authority File */#define HTTP_SSL_CA_PATH "" /* SSL Certificate Authority File Path */#define HTTP_SSL_CERTIFICATE_FILE "/trgsrv/server.pem" /* SSL Certificate file */#define HTTP_SSL_CIPHER_LIST "DEFAULT" /* SSL Cipher */#define HTTP_SSL_PRIVATE_KEY_FILE "/trgsrv/server.pem" /* SSL Private Key *//* * list configuration * specify the max number of entries in several configuration tables */#define HTTP_SYSRPM_CONF_MAX 2 /* max # of system RPMs */#define HTTP_RPM_CONF_MAX 3 /* max # of user RPMs per HTTP method */#define HTTP_RPM_DISP_MAX 2 /* max # of supported HTTP methods */#define HTTP_MIMEPARSE_CONF_MAX 9 /* max # of MIME parsing functions */#define HTTP_ALIAS_CONF_MAX 6 /* max # of alias definitions */#define HTTP_LOCATION_CONF_MAX 0 /* max # of location groups */#define HTTP_LOCATION_NAME_SIZE 0 /* max size of a location group string */#define HTTP_IP_PER_LOCATION_MAX 0 /* max # of IP patterns per location group */#define HTTP_IP_PATTERN_SIZE 0 /* max size of an IP pattern */#define HTTP_GID_CONF_MAX 0 /* max # of user groups */#define HTTP_GID_NAME_SIZE 0 /* max size of a user group string */#define HTTP_USER_PER_GID 0 /* max # of users per user group */#define HTTP_USERNAME_SIZE 0 /* max size of a user name */#define HTTP_PASSWORD_SIZE 0 /* max size of a user password */#define HTTP_CTRL_CONF_MAX 0 /* max # of URL paths for access control */#define HTTP_MEMBERS_PER_CTRL 0 /* max # of access control clauses per URL path */#define HTTP_CTRL_URL_SIZE 0 /* max size of an access control statement */#define HTTP_CGI_FN_CONF_MAX 0 /* max # of CGI routines */#define HTTP_UPLOAD_CONF_MAX 0 /* max # of path definitions for file upload */#define HTTP_FS_CONF_MAX 2 /* max # of file system mounting points */#define HTTP_WMB_PATHS_MAX 1 /* max # of WMB file system mounting points */#define HTTP_FILE_REGISTRY_MAX 20 /* max # of special files registered with the server */#define HTTP_MACRO_REPEAT_NEST_MAX 10 /* max # of nested depth for Repeat Macro *//* The constants below are used by the Wind River Management File System, and they * can all be changed in the Build | File System Image portion of the * Integration Tool, depending on the specifics of your system. */ #define HTTP_UNIQUE_SIGNATURE "OWOWOWOWOWOWOWOW"#undef __NO_ROMBUILD_IMAGE__ /* Build FileSystem Flag */#define HTTP_SECTOR_SIZE 0x00010000#define HTTP_NVRAM_SIZE 0x00080000#define HTTP_NVRAM_START wm_filesys/* * scalability/feature configuration * comment out some or all of the following statements to scale * functionality and code size of the Web Server */#define HTTP_MESSAGES_FULL /* give full verbosity for error msgs */#define HTTP_DEBUG /* include debugging info on init *//* * Live Control configuration */#undef INCLUDE_HTTP_LIVE_CONTROL /* include Live Control Java processing */#define HTTP_LC_POLL_MED 2000#define HTTP_LC_POLL_HGH 300/* * Web Authentication configuration */#undef __JAVASCRIPT_DIGEST_ENABLED__ /* Enable Javascript authentication */#define CUSTOM_AUTHENTICATION_LEVEL SAMPLE_AuthLevel /* user's authority checker */#define kHwIdleTimeoutSecs 120 /* secure session timeout */#define kHwMaxSimultaneousClients 10 /* */#define kJavaScriptLogonPage "doc/logon.html"/* * RPM configuration */#define INCLUDE_HTTP_MIME_HDR_PROC /* include MIME header processing */#define INCLUDE_HTTP_MIME_GUESSTYPE /* include MIME type guessing support */#define INCLUDE_HTTP_LANGUAGE_NEGOTIATION /* support pages with equal content in several languages */#undef INCLUDE_HTTP_LOG /* logfile support RPM */#define INCLUDE_HTTP_SERVER_UNCOMPRESS /* include server data uncompression */#define INCLUDE_HTTP_FS /* include file system RPM */#define INCLUDE_HTTP_ALIASING /* include RPM alias */#undef INCLUDE_HTTP_ACCESS_CTRL /* include access control RPM */#undef INCLUDE_HTTP_IP_CHECKING /* include and enable IP checking */#undef INCLUDE_HTTP_PWD_CHECKING /* include password checking - needs INCLUDE_HTTP_MIME_HDR_PROC */#undef INCLUDE_HTTP_SHOWAUTH /* show authentication information */#undef INCLUDE_HTTP_CGI /* include CGI support */#undef INCLUDE_HTTP_UPLOAD /* include file upload RPM */#define INCLUDE_HTTP_WMB_INTERFACE /* include WMB RPM */#define INCLUDE_HTTP_POST /* include form post RPM *//* * Future Extensions */#ifdef __WM_EVENT_MANAGER__void fwWebScreenComponent_WmwListener(WMB_EM_EVENT_T *pEmEvent);#endif /* __WM_EVENT_MANAGER__ */STATUS fwWebScreenComponent_Web_Start(WMB_COMPONENT_T *cid);#endif /* __WMW_HTTPCONF_H_HEADER__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -