wcsock.h

来自「经典C++书籍钱能C++书籍例子代码实例」· C头文件 代码 · 共 56 行

H
56 行
字号
#if !defined(AFX_WCSOCK_H__66D3826F_3822_11D7_829B_9E6478685947__INCLUDED_)
#define AFX_WCSOCK_H__66D3826F_3822_11D7_829B_9E6478685947__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// WCSock.h : header file
//

#define  RE_RECEIVED  WM_USER+1

/////////////////////////////////////////////////////////////////////////////
// CWCSock command target
typedef struct 
{
	char m_strName[255];  //客户名字;

	char m_dbData[255];   //要发送的数据或信息;
	BOOL m_bOnline;       //客户是否在线;
}_DATA;

class CWCSock : public CSocket
{
// Attributes
public:

// Operations
public:
	CWCSock();
	virtual ~CWCSock();

// Overrides
public:
	_DATA m_Dat;
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWCSock)
	public:
	virtual void OnReceive(int nErrorCode);
	//}}AFX_VIRTUAL

	// Generated message map functions
	//{{AFX_MSG(CWCSock)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

// Implementation
protected:
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WCSOCK_H__66D3826F_3822_11D7_829B_9E6478685947__INCLUDED_)

⌨️ 快捷键说明

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