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

📄 rules.cpp

📁 这是一个firewall的演示系统程序
💻 CPP
字号:
// rules.cpp: implementation of the RuleInfo class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "FirewallApp.h"
#include "rules.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

RuleInfo::RuleInfo()
{

}

RuleInfo::~RuleInfo()
{

}

/**
 *	过滤规则的赋值操作符
 *
 */
RuleInfo RuleInfo::operator = (const RuleInfo& src)
{
	this ->action = src.action;
	this ->bOut = src.bOut;
	this ->destinationIp = src.destinationIp;
	this ->destinationMask = src.destinationMask;
	this ->destinationPort = src.destinationPort;
	this ->protocol = src.protocol;
	this ->sourceIp = src.sourceIp;
	this ->sourceMask = src.sourceMask;
	this ->sourcePort = src.sourcePort;
	return *this;
}

⌨️ 快捷键说明

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