securitymanager.h

来自「It can also accept a number of ftp conne」· C头文件 代码 · 共 34 行

H
34
字号
// SecurityManager.h: interface for the CSecurityManager class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SECURITYMANAGER_H__1236B96A_01BF_4866_9297_2A1D4B38C9D2__INCLUDED_)
#define AFX_SECURITYMANAGER_H__1236B96A_01BF_4866_9297_2A1D4B38C9D2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CSecurityManager  
{
public:
	BOOL IsIPAddressBlocked(LPCTSTR lpszIPAddress);
	BOOL IsIPAddressNonBlocked(LPCTSTR lpszIPAddress);
	void UpdateBlockedList(CStringArray &strArray);
	void UpdateNonBlockedList(CStringArray &strArray);
	void GetNonBlockedList(CStringArray &strArray);
	void GetBlockedList(CStringArray &strArray);
	CSecurityManager();
	virtual ~CSecurityManager();

	BOOL Serialize(BOOL bStoring);
protected:
	CStringArray m_NonBlockedList;
	CStringArray m_BlockedList;
	CString m_strFilename;

	CCriticalSection m_CriticalSection;
};

#endif // !defined(AFX_SECURITYMANAGER_H__1236B96A_01BF_4866_9297_2A1D4B38C9D2__INCLUDED_)

⌨️ 快捷键说明

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