亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? config.c

?? proxy源代碼,linux下的ftp 代理的源代碼,大家多多支持啊
?? C
字號:
/*    File: ftpproxy/config.c     Copyright (C) 2003  Andreas Schoenberg  <asg@ftpproxy.org>       This software is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.      This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU General Public License for more details.      You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#include <stdlib.h>#include <stdio.h>#include <string.h>#include <unistd.h>#include <stdarg.h>#include <ctype.h>#include <errno.h>#include <signal.h>#include <sys/wait.h>#include <pwd.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/fcntl.h>#include <sys/socket.h>#include <netdb.h>#include <netinet/in.h>#include <arpa/inet.h>#include <syslog.h>#include <sys/time.h>#include "ftp.h"#include "lib.h"static int get_yesno(char **from, char *par, char *filename, int lineno){	char	word[80];	if (**from == 0) {		fprintf (stderr, "%s: missing parameter: %s, %s:%d\n", program, par, filename, lineno);		exit (1);		}	get_word(from, word, sizeof(word));	if (strcmp(word, "yes") == 0)		return (1);	else if (strcmp(word, "no") == 0)		return (0);	fprintf (stderr, "%s: bad parameter value: %s, parameter= %s, %s:%d\n", program, word, par, filename, lineno);	exit (1);		return (0);}static char *get_parameter(char **from, char *par, char *value, int size,		char *filename, int lineno){	if (**from == 0) {		fprintf (stderr, "%s: missing parameter: %s, %s:%d\n", program, par, filename, lineno);		exit (1);		}	copy_string(value, *from, size);	if (strcmp(value, "-") == 0)		*value = 0;	return (value);}static unsigned int get_number(char **from, char *par, char *filename, int lineno){	char	word[20];	unsigned int val;	get_parameter(from, par, word, sizeof(word), filename, lineno);	val = strtoul(word, NULL, 0);	return (val);}int readconfig(config_t *config, char *filename, char *section){	int	lineno, insection, havesection, sectioncount;	char	*p, word[80], line[300], sectname[80];	FILE	*fp;	if ((fp = fopen(filename, "r")) == NULL) {		fprintf (stderr, "%s: can't open configuration file: %s\n", program, filename);		exit (1);		}	sectioncount = 0;	if (*section == 0) {		insection = 1;		havesection = 1;		}	else {		snprintf (sectname, sizeof(sectname) - 2, "[%s]", section);		insection = 0;		havesection = 0;		}	lineno = 0;	while (fgets(line, sizeof(line), fp) != NULL) {		lineno++;		if ((p = strchr(line, '#')) != NULL)			*p = 0;		if (*line == '[') {			sectioncount++;			if (*section == 0)				break;			p = line;			get_word(&p, word, sizeof(word));			if (strcmp(word, sectname) != 0)				insection = 0;			else {				insection = 1;				havesection = 1;				}			continue;			}		if (insection == 0)			continue;		p = skip_ws(noctrl(line));		if (*p == 0)			continue;		get_word(&p, word, sizeof(word));		strlwr(word);		p = skip_ws(p);		if (strcmp(word, "debug") == 0)			debug = get_yesno(&p, word, filename, lineno);				else if (strcmp(word, "acp") == 0)			get_parameter(&p, word, config->acp, sizeof(config->acp), filename, lineno);		else if (strcmp(word, "ccp") == 0)			get_parameter(&p, word, config->ccp, sizeof(config->ccp), filename, lineno);		else if (strcmp(word, "ctp") == 0)			get_parameter(&p, word, config->ctp, sizeof(config->ctp), filename, lineno);		else if (strcmp(word, "allow-anyremote") == 0)			config->allow_anyremote = get_yesno(&p, word, filename, lineno);		else if (strcmp(word, "allow-blanks") == 0)			config->allow_blanks = get_yesno(&p, word, filename, lineno);		else if (strcmp(word, "allow-passwdblanks") == 0)			config->allow_passwdblanks = get_yesno(&p, word, filename, lineno);		else if (strcmp(word, "extra-logging") == 0)			extralog = get_yesno(&p, word, filename, lineno);		else if (strcmp(word, "monitormode") == 0)			config->monitor = get_yesno(&p, word, filename, lineno);		else if (strcmp(word, "proxy-routing") == 0)			config->use_last_at = get_yesno(&p, word, filename, lineno);		else if (strcmp(word, "selectserver") == 0) {			config->selectserver = get_yesno(&p, word, filename, lineno);			*config->server = 0;			}		else if (strcmp(word, "server") == 0) {			get_parameter(&p, word, config->server, sizeof(config->server), filename, lineno);			config->selectserver = 0;			}		else if (strcmp(word, "serverlist") == 0)			config->serverlist = strdup(skip_ws(p));		else if (strcmp(word, "sourceip") == 0)			get_parameter(&p, word, config->sourceip, sizeof(config->sourceip), filename, lineno);		else if (strcmp(word, "bind") == 0) {			bindport = get_number(&p, word, filename, lineno);			daemonmode = 1;			}		else if (strcmp(word, "timeout") == 0) {			config->timeout = get_number(&p, word, filename, lineno);			if (config->timeout < 60)				config->timeout = 60;			}		else if (strcmp(word, "xferlog") == 0)			get_parameter(&p, word, config->xferlog, sizeof(config->xferlog), filename, lineno);		else {			fprintf (stderr, "%s: unknown parameter: %s, %s:%d\n", program, word, filename, lineno);			exit (1);			}		}			fclose (fp);	if (*section != 0  &&  sectioncount == 0)		havesection = 1;	return (havesection);}#define	printyesno(x, y)	(y != 0? printf ("%s: %s\n", x, (y == 0)? "no": "yes"): 0)#define printnum(x, y)		((y > 0)? printf ("%s: %u\n", x, y): 0)#define	printstring(x, y)	((y != NULL  &&  *y != 0)? printf("%s: %s\n", x, y): 0)int printconfig(config_t *config){	printf ("debug: %s\n", (debug == 0)? "no": "yes");	printstring ("acp", config->acp);	printyesno ("allow-anyremote", config->allow_anyremote);	printyesno ("allow-blanks", config->allow_blanks);	printyesno ("allow-passwdblanks", config->allow_passwdblanks);	printnum ("bind", bindport);	printstring ("ccp", config->ccp);	printstring ("ctp", config->ctp);	printyesno ("extra-logging", extralog);	printyesno ("monitormode", config->monitor);	printyesno ("proxy-routing", config->use_last_at);	printf ("selectserver: %s\n", (config->selectserver == 0)? "no": "yes");	printstring ("server", config->server);	printstring ("serverlist", config->serverlist);	printnum ("timeout", config->timeout);	return (0);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品一区二区三区影院| 国产盗摄视频一区二区三区| 在线精品国精品国产尤物884a| 日本一区二区免费在线观看视频 | 日韩精品综合一本久道在线视频| 亚洲电影视频在线| 91麻豆精品国产无毒不卡在线观看| 天天操天天干天天综合网| 91精品在线观看入口| 免费高清在线视频一区·| 精品va天堂亚洲国产| 国产成人精品影院| 日韩毛片高清在线播放| 91老师国产黑色丝袜在线| 亚洲二区在线视频| 91精品国产综合久久精品图片| 久久国内精品视频| 国产拍欧美日韩视频二区| 91国产免费看| 欧美aaaaa成人免费观看视频| 精品久久久久久无| av激情综合网| 日韩电影一区二区三区| 精品福利一区二区三区免费视频| 国产成人午夜电影网| 亚洲精品少妇30p| 日韩欧美色综合网站| 成人午夜免费视频| 亚洲一区二区中文在线| 欧美videos中文字幕| 成人美女视频在线观看18| 亚洲午夜日本在线观看| 久久网站最新地址| 色婷婷久久综合| 欧美aa在线视频| 自拍偷拍亚洲欧美日韩| 日韩一区二区电影| 99视频一区二区三区| 日本不卡高清视频| 亚洲免费在线播放| 久久久亚洲精华液精华液精华液 | 日韩一二在线观看| 不卡视频免费播放| 日韩精品成人一区二区三区| 国产精品污污网站在线观看 | 在线一区二区观看| 国产精品一区二区三区乱码| 亚洲自拍偷拍av| 国产精品狼人久久影院观看方式| 欧美一区二视频| 在线观看欧美日本| 国产91精品一区二区麻豆亚洲| 亚洲高清视频在线| 亚洲欧洲国产日本综合| 久久综合色鬼综合色| 欧美精品黑人性xxxx| 色婷婷激情一区二区三区| proumb性欧美在线观看| 国产一区二区毛片| 日韩av高清在线观看| 亚洲一区二区三区四区不卡| 日韩毛片视频在线看| 欧美国产精品专区| 久久久久国产精品麻豆| 欧美大片一区二区三区| 69堂精品视频| 欧美久久久一区| 91麻豆免费观看| 亚洲乱码国产乱码精品精98午夜| 精品久久久久香蕉网| 91 com成人网| 91久久国产综合久久| 成人午夜激情影院| 狠狠色狠狠色合久久伊人| 亚洲午夜av在线| 亚洲福利视频三区| 有坂深雪av一区二区精品| 久久久久久毛片| 日韩精品一区二区三区视频| 欧美日韩一区三区四区| 色一情一乱一乱一91av| 成人免费毛片高清视频| 日韩av中文字幕一区二区三区| 日韩精品一级二级| 亚洲国产日韩精品| 亚洲一区二区偷拍精品| 亚洲男人电影天堂| 国产精品久久久久久一区二区三区 | 日韩欧美一二三四区| 欧美日韩一区三区| 欧美日韩精品一区二区在线播放| 福利视频网站一区二区三区| 天天综合网 天天综合色| 亚洲一区二区三区在线| 亚洲一区二区三区激情| 亚洲午夜三级在线| 亚洲综合一区在线| 亚洲一区成人在线| 一区二区三区免费网站| 夜夜亚洲天天久久| 国产精品福利av| 国产精品国产三级国产三级人妇| 国产精品美女久久久久久久久久久| 国产日本亚洲高清| 国产精品亲子伦对白| 日本一区二区综合亚洲| 国产精品灌醉下药二区| 亚洲欧美另类小说视频| 亚洲精品国产精品乱码不99 | 国产欧美精品国产国产专区| 国产亚洲一区二区三区在线观看| 欧美成人性战久久| 国产精品无遮挡| 亚洲精品大片www| 亚洲一区二区在线免费观看视频 | 人人狠狠综合久久亚洲| 日本大胆欧美人术艺术动态| 国产一区视频导航| 99re免费视频精品全部| 91福利国产精品| 日韩欧美123| 精品久久久久一区| 一区二区三区在线免费观看| 五月天久久比比资源色| 精品一区二区在线免费观看| 高清不卡在线观看| 在线观看一区日韩| 欧美变态tickling挠脚心| 久久蜜桃香蕉精品一区二区三区| 国产精品国产三级国产| 亚洲摸摸操操av| 国产精品1区2区3区| 一本色道久久综合亚洲精品按摩| 欧美精品高清视频| 欧美激情资源网| 亚洲国产人成综合网站| 国产一区91精品张津瑜| 91看片淫黄大片一级在线观看| www.久久精品| 日韩视频在线一区二区| 亚洲欧洲日韩女同| 热久久久久久久| 色婷婷久久久综合中文字幕| 日韩精品一区二区三区四区视频| 国产日韩欧美高清在线| 午夜视频在线观看一区| 国产91清纯白嫩初高中在线观看| jiyouzz国产精品久久| 欧美美女直播网站| 国产精品免费看片| 久久成人18免费观看| 91视频在线观看| 久久精品人人爽人人爽| 午夜视频久久久久久| 97久久超碰国产精品| 日韩免费观看高清完整版| 亚洲综合久久久| 不卡欧美aaaaa| 精品国产网站在线观看| 亚洲成av人片在线观看| 成人网页在线观看| 欧美日韩在线播放| 亚洲国产精品麻豆| 色噜噜狠狠色综合中国| 国产视频911| 国内精品国产三级国产a久久| 精品视频免费在线| 亚洲精品高清在线观看| 久久精品国产99国产精品| 日韩一区二区视频| 亚洲国产综合在线| 色老汉一区二区三区| 国产精品第五页| 丰满少妇在线播放bd日韩电影| 精品福利一二区| 午夜精品视频在线观看| 99在线精品观看| 国产精品免费丝袜| 成人国产视频在线观看| 中文字幕的久久| 粉嫩av一区二区三区在线播放| 久久美女高清视频| 成人性生交大片免费看在线播放| 精品1区2区在线观看| 日韩精品一二三区| 欧美一区二区三区视频免费播放| 婷婷综合在线观看| 欧美区在线观看| 日韩精品久久理论片| 欧美无人高清视频在线观看| 偷拍亚洲欧洲综合| 欧美一区二区在线看| 蜜桃精品视频在线观看| 欧美一二区视频| 久久国产精品无码网站| 日韩欧美一区在线观看| 国产精品一区二区你懂的| 日本一区二区三区dvd视频在线| 国产成人一区二区精品非洲| 日本一区二区三区在线观看|