?? ws_cfg.h
字號:
/************************************************************************
*
* CopyrIght (c) 1993 - 2001 Accelerated Technology, Inc.
*
* PROPRIETARY RIGHTS of Accelerated Technology are involved in the subject
* matter of this material. All manufacturing, reproduction, use and sales
* rights pertaining to this subject matter are governed by the license
* agreement. The recipient of this software implicity accepts the terms
* of the license.
*
*************************************************************************/
/************************************************************************
*
* FILE NAME VERSION
*
* ws_cfg.h WEBSERV 1.5
*
* COMPONENT
*
* Nucleus WebServ
*
* DESCRIPTION
*
* This file contains all user modifiable switches that allow
* extended features to be supported by Nucleus WebServ.
*
* DATA STRUCTURES
*
* None
*
* FUNCTIONS
*
* None
*
* DEPENDENCIES
*
* None
*
*************************************************************************/
#ifndef _WS_CFG_H
#define _WS_CFG_H
/* A debugging interface has been provided through the use of
* printf statements. The toolset used must support printf
* statements before uncommenting NU_WEBSERV_DEBUG.
*/
/* #define NU_WEBSERV_DEBUG */
/* Nucleus WebServer can support a filesystem on mass storage or
* a memory based filesystem that is compiled into the system
* or uploaded using the file upload feature.
* By default the memory based file system is set up.
* If you would like to use the File Abstraction layer comment out the
* #define WS_FS_IN_MEMORY.
*/
#define WS_FS_IN_MEMORY
/* WS_LIST_DIR_PLGN enables the Nucleus WebServ directory command.
* This feature is a plugin that lists
* the users incore filesystem on the
* users browser.
*/
#define WS_LIST_DIR_PLGN
/* WS_FILE_UPLOAD_PLGN allows Nucleus WebServ to support file uploading
* using multi-part mime to enable file uploading
*/
#define WS_FILE_UPLOAD_PLGN
/* WS_FILE_COMPRESSION allows Nucleus WebServ to support file
* compression of embedded HTML and other files.
* This option supports transparent file compression for both mass-storage
* and memory based filesystems
*/
#define WS_FILE_COMPRESSION
/* Nucleus WebServ can support secure user authentication
* useing a Java applet and DES encryption support in the server.
* To enable DES 40bit authentication define WS_AUTH_40_ENTICATION.
*/
/* #define WS_AUTH_40_ENTICATION */
/* To select Basic Authtentication as defined in HTTP 1.0 uncomment the
* the #define WS_BASIC_AUTH.
*/
#define WS_BASIC_AUTH
/* CONFIGURABLE PARAMETERS OF WEBSERV */
#define WS_AUTH_MAX_USERS 4 /* maximum authenticated users allowed at a time */
#define WS_AUTH_TIMEOUT 300 * TICKS_PER_SECOND /* a session idle for AUTH_TIMEOUT seconds is de-authenticated */
#define WS_QSIZE 128 /* Size of socket queue */
#define WS_STACK_SIZE 5000 /* Worker task stack size */
#define WS_MAX_WORKER_TASKS 2 /* Number of worker tasks allowed */
#define WS_LOCAL_QUEUE_SIZE 10 /* Number of connections a worker maintains */
#define WS_OUT_BUFSZ 2048 /* size of output buffer */
#define WS_RECEIVE_SIZE 2048 /* size of the recieve buffer */
#define WS_MAX_SEND_SIZE 20000 /* max bytes sent to network layer */
#define WS_REDIRECT_IP /* Allows for redirecting browser to default IP */
#define WS_SOCKET_GRACEFUL_TIMEOUT 100 * TICKS_PER_SECOND
/* define URL's for success and failure */
#define WS_AUTH_SUCCESS_URI "success.htm" /* go here after sucessfull authentication */
#define WS_AUTH_FAILURE_URI "failure.htm" /* go here after sucessfully logged in */
#define WS_AUTH_SCREEN_URI "login.htm" /* Screen to show an unauthenticated user */
#define WS_DEFAULT_URI "index.htm" /* default uri when "/" is referenced */
#define WS_PUBLIC_DIR "publicdir" /* anything is this directory is ALWAYS public */
#define WS_SSI_NAME_LEN 32 /* maximum name length for ssi*/
#define WS_SSI_LINE 256 /* maximum size of a SSI tag */
#define WS_TOKEN_HEAP 16 /* maximum number of tokens per request */
#define WS_MAX_PLUGIN 32 /* maximum plugins */
/* END OF USER CONFIGURATION SECTION */
#ifdef WS_AUTH_40_ENTICATION
#ifndef WS_AUTHENTICATION
#define WS_AUTHENTICATION
#endif
#ifndef WS_AUTH_PLUGIN
#define WS_AUTH_PLUGIN
#endif
#endif /* WS_AUTH_40_ENTICATION */
#endif /* _WS_CFG_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -