conf.c

来自「ftam等标准协议服务器和客户端的源代码。」· C语言 代码 · 共 111 行

C
111
字号
/* conf.c - DSAP Configuration */#ifndef lintstatic char *rcsid = "$Header: /xtel/isode/isode/dsap/common/RCS/conf.c,v 9.0 1992/06/16 12:12:39 isode Rel $";#endif/* * $Header: /xtel/isode/isode/dsap/common/RCS/conf.c,v 9.0 1992/06/16 12:12:39 isode Rel $ * * * $Log: conf.c,v $ * Revision 9.0  1992/06/16  12:12:39  isode * Release 8.0 * *//* *                                NOTICE * *    Acquisition, use, and distribution of this module and related *    materials are subject to the restrictions of a license agreement. *    Consult the Preface in the User's Manual for the full terms of *    this agreement. * *//* LINTLIBRARY */#include "quipu/util.h"#include "tailor.h"int     sizelimit = 20;int	timelimit = 30;	char    *oidtable =  "oidtable";char    *tailfile =  "dsaptailor";char    *isotailor = NULLCP;char    *dsa_address = NULLCP;char    *myname = NULLCP;char	*local_dit= NULLCP;	/* the part of the tree local to the users */char 	dishinit = FALSE;int     dsap_id,        /* global last id sent */	dsap_ad;        /* global association descriptor */time_t  cache_timeout = 21600;	/* Keep cache entries for 6 hours */static  LLog    _ldsap_log ={	"dsap.log",	NULLCP,	NULLCP,	LLOG_FATAL | LLOG_EXCEPTIONS,	LLOG_NONE,	-1,	LLOGZER | LLOGCRT | LLOGCLS,	NOTOK};LLog    *log_dsap = &_ldsap_log;#ifndef NO_STATSstatic  LLog    lstat_log ={	"quipu.log",	NULLCP,	NULLCP,	LLOG_NOTICE | LLOG_TRACE,	LLOG_NONE,	-1,	LLOGCRT | LLOGZER,	NOTOK};LLog    *log_stat = &lstat_log;#endifint     oidformat = 1;      /* oid format, 1=part, 2=full, 3=numeric *//* a quick def incase quipu/malloc.c is not compiled in !!! */unsigned mem_heap = 0;char    *dsaoidtable =  "oidtable";char    *dsatailfile =  "quiputailor";char    *treedir  =  "quipu-db";int	no_last_mod = FALSE;char	startup_update = FALSE;int	search_level = 2;	/* do NOT allow country level searching */int	read_only = FALSE;	/* Prevent DIT modification */				/* admin limits */int	admin_size = 100;	/* 100 entries */time_t	admin_time = 120;	/* don't spend more than 2 minutes on a task */time_t	conn_timeout = 300;	/* don't hold an unused connection open for more than 5 minutes */time_t	nsap_timeout = 45;	/* after 45 seconds assume nsap has failed */time_t  slave_timeout = 0;	/* Update slaves every 'cache_time' seconds */time_t  retry_timeout = 0;	/* Test DSA for reliability after 'cache_time' seconds */unsigned watchdog_time  = 5 * 60;	/* allow lower layers 5 minutes per *async* operation */unsigned watchdog_delta = 30;	/* allow 30 second for timeout to propagate */char dsa_mode = FALSE;char quipu_faststart = FALSE;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?