mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-13 16:35:35 +08:00
cf2528eb7c
完善了非阻塞IO的SSL功能;将 acl/samples/ 下的示例分别移到 lib_acl 及 lib_protocol 目录下
31 lines
458 B
C++
31 lines
458 B
C++
#pragma once
|
|
|
|
#ifndef KB
|
|
#define KB (1024)
|
|
#endif
|
|
|
|
#ifndef MB
|
|
#define MB (KB * 1024)
|
|
#endif
|
|
|
|
class CScanDir
|
|
{
|
|
public:
|
|
CScanDir(const char* path, BOOL nested);
|
|
~CScanDir(void);
|
|
protected:
|
|
char* m_pDirPath;
|
|
BOOL m_nested;
|
|
public:
|
|
int BeginScan(void);
|
|
private:
|
|
// 扫描的文件总数
|
|
int m_nFile, m_nDir;
|
|
__int64 m_nSize;
|
|
public:
|
|
int FileCount(void);
|
|
int DirCount(void);
|
|
__int64 TotalSize(void);
|
|
int BeginRemove(void);
|
|
};
|