clientsocket.h

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

H
48
字号

#ifndef __CLNTSOCK_H__
#define __CLNTSOCK_H__

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


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

// Attributes
public:
	CSnifferDlg* m_pDlg;
// Operations
public:
	void SendMsg(char pMsg);
	void ReceiveMsg(char *pMsg);

// Overridable callbacks
protected:
	virtual void OnReceive(int nErrorCode);
#if defined(_WIN32_WCE)
	virtual void OnClose(int nErrorCode);
#endif // _WIN32_WCE

// Implementation
public:
	virtual ~CClientSocket();
};

#endif // __CLNTSOCK_H__

⌨️ 快捷键说明

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