listeningsocket.h

来自「实现pc机和安装无线CF卡的手持设备之间的通信的程序源代码」· C头文件 代码 · 共 43 行

H
43
字号
#ifndef __LSTNSOCK_H__
#define __LSTNSOCK_H__

class CSnifferDlg;

#if defined(_WIN32_WCE)
class CListeningSocket : public CCeSocket
#else // _WIN32_WCE
class CListeningSocket : public CSocket
#endif // _WIN32_WCE
{
	DECLARE_DYNAMIC(CListeningSocket);
private:
	CListeningSocket(const CListeningSocket& rSrc);         // no implementation
	void operator=(const CListeningSocket& rSrc);  // no implementation

// Construction
public:
#if defined(_WIN32_WCE)
	CListeningSocket( CSnifferDlg* pDoc, PURPOSE_E iPurpose=FOR_LISTENING );
#else // _WIN32_WCE
	CListeningSocket(CSnifferDlg* pDoc);
#endif // _WIN32_WCE

// Attributes
public:
	CSnifferDlg* m_pDlg;

// Overridable callbacks
protected:
	virtual void OnAccept(int nErrorCode);

// Implementation
public:
	virtual ~CListeningSocket();

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
};
#endif // __LSTNSOCK_H__

⌨️ 快捷键说明

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