📄 cloader.cpp
字号:
#include "globals.h"/*************************************************************************** cloader.cpp - description ------------------- begin : Wed May 23 2001 copyright : (C) 2001 by stephane (birdy57) email : birdy57@multimania.com ***************************************************************************//*************************************************************************** * * * This program 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. * * * ***************************************************************************/#include "../config.h"#include <string.h>#include "cloader.h"#ifdef WITH_MODEM#include "modemdriver.h"#endif#ifdef WITH_CABLE#include "CableDriver.h"#endif#ifdef WITH_TUNTAP#include "ctuntapdriver.h"#endif#ifdef WITH_PPP#include "cppp.h"#endif#ifdef WITH_WINTAP#include "cwintap.h"#endifCLoader::CLoader(){ m_cDriverInName = new char[30]; m_cDriverOutName = new char[30]; m_cIpDns = new char[30]; m_cAnotherDNS = new char[30]; m_sStart = new char[30]; m_cParam = new CParamConfig[7]; m_cParam[0].DriverClass = "Loader"; m_cParam[0].Msg = "Vers 0.5 Linux"; m_cParam[0].Author = "birdy57"; m_cParam[0].Guid = 0x4400; //xxyz y=systeme z=2 drivers out m_cParam[1].Request = "DriverIn"; m_cParam[1].Default = "Auto"; m_cParam[1].InitStr = m_cDriverInName; m_cParam[1].MaxBufferLen = 30; m_cParam[2].Request = "DriverOut"; m_cParam[2].Default = "Auto"; m_cParam[2].InitStr = m_cDriverOutName; m_cParam[2].MaxBufferLen = 30; m_cParam[3].Request = "UseAnotherDNS"; m_cParam[3].Default = "No"; m_cParam[3].InitStr = m_cAnotherDNS; m_cParam[3].MaxBufferLen = 30; m_cParam[4].Request = "*DnsIP"; m_cParam[4].Default = "152.163.201.4"; m_cParam[4].InitStr = m_cIpDns; m_cParam[4].MaxBufferLen = 30; m_cParam[5].Request = "StartAtConnection"; m_cParam[5].Default = "None"; m_cParam[5].InitStr = m_sStart; m_cParam[5].MaxBufferLen = 30; m_cParam[6].Request = NULL; m_cParam[6].Default = NULL; m_cParam[6].MaxBufferLen = 0; // Genere la premiere table des drivers m_pFirstDriver = new m_cListDriver; m_pActualDriver = m_pFirstDriver; // et on les place
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -