IPLocater.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:1k
源码类别:
P2P编程
开发平台:
Visual C++
- // IPLocater.h: interface for the CIPLocater class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_IPLOCATER_H__F23CEF63_F428_4B40_93E4_A0EC9FC83D9D__INCLUDED_)
- #define AFX_IPLOCATER_H__F23CEF63_F428_4B40_93E4_A0EC9FC83D9D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CIPLocater
- {
- public:
- CIPLocater();
- virtual ~CIPLocater();
- BOOL Create(CString strIPdbpath);
- BOOL IsCreate() const;
- bool FindIPName(ULONG lIP, CString& strName) const;
- bool FindIPName(CString strIP, CString &strName)const;
- private:
- vector<CString> m_vCountry;
- vector<CSize> m_vIndex;
- char* m_pBuf;
- bool m_bCreate;
- long m_lBufCount;
- };
- #endif // !defined(AFX_IPLOCATER_H__F23CEF63_F428_4B40_93E4_A0EC9FC83D9D__INCLUDED_)