⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 netcfg.h

📁 一个操作系统源代码 用于嵌入式设备 在Vc++环境下仿真 成功移植到多款处理器上
💻 H
字号:

#ifndef _NETCFG_H
#define _NETCFG_H

/* The new Netcfg.h updated from the old one 
 * We donot need so many useless space
 * Lingming 2000/04/10
 */
//#include "global.h"


struct dnsserver{
	U32	pridns;
	U32   secdns;
};

struct mailserver{
	char smtpserver[30];
	char popserver[30];
	char popaccount[18];
	char poppassword[18];
	char popdelete;
	char poptimeout;
	char smtptimeout;
};

struct dialserver{
	char dialnumber[30];
	char dialaccount[18];
	char dialpassword[18];
	char flag;
#define DEFAULT		1
};

/*struct SMSgateway{
	char SMScenter[13];
	char SMSgateway[13];
};*/

struct netcfg {
	char			Valid[4];
       #define CFGVALID         0xbeefdeadL	/*For the DragongBall system int is 32 bits*/ 
	struct dnsserver	Dns;
	struct mailserver	Mail[1];
	struct dialserver	Dial[1];
/*#ifdef GSMSMS
	struct SMSgateway	Gateway[1];
#endif*/

	char			Flag;
       #define MODIFIED	1
};

/* we add one byte for safe and the limit still be the origin.	Lingming 11/10/1999*/
//struct zhangcfg{
//	char 	dns[16];
//	char 	smtp[31];
//	char	popser[31];
//	char	popacc[19];
//	char	poppass[19];
//	char	dialnum[31];
//	char	dialacc[19];
//	char	dialpass[19];
/*#ifdef GSMSMS
	char 	smscenter[14];
	char 	smsgateway[14];
#endif*/

//};

#define HISTORY_NUM 	8

struct cfghis{
	char 	str[30];
	U16	hits;
};
 

extern U8	question_mark[];/*defined in kb_data.c Lingming 2000/4/25*/
extern U8	smart_history[];/*defined in kb_data.c Lingming 2000/09/29*/
//extern struct 	zhangcfg Cfg;	
extern struct 	netcfg *Netcfg;	

//char *cfgtest(void);	/*10/22/1999*/
U8 getcfg(char *ptr);
//void netcfg(void);
//char *wzdhist();
//void helpinfo(char *helpstr);	/*we add the help info 	Lingming 11/08/1999*/
//void sys_exit(void);

#endif

⌨️ 快捷键说明

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