⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 elecsocket.h

📁 网络家电
💻 H
字号:
#if !defined(AFX_ELECSOCKET_H__86D9758E_7C24_456C_81ED_4DC3722CCEBF__INCLUDED_)
#define AFX_ELECSOCKET_H__86D9758E_7C24_456C_81ED_4DC3722CCEBF__INCLUDED_

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

//--------------------------------------------------
// 通信状态
//--------------------------------------------------
#define CSTATE_START		0		// 起始状态
#define CSTATE_WAIT_PASS	1		// 等待验证
#define CSTATE_LOGINOK		2		// 登录成功


//--------------------------------------------------
// 家电状态
//--------------------------------------------------
typedef struct _JiaDianState
{
	int nKongTiaoOpenOrClose;
	int nKongTiaoTemperature;
	int nWaterHeaterOpenOrClose;
	int nWaterHeaterTemperature;
	int nMicroWaveOvenOpenOrClose;
	int nMicroWaveOvenTiming;
	int nCurtainOpenOrClose;
	int nCurtainTiming;
}t_JiaDianState;

/////////////////////////////////////////////////////////////////////////////
// CElecSocket command target

class CElecSocket : public CSocket
{
// Attributes
public:

// Operations
public:
	CElecSocket();
	virtual ~CElecSocket();
	void SetData(CWnd *pWndOwner);
	int m_CommState;

// Overrides
public:
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CElecSocket)
	public:
	virtual void OnAccept(int nErrorCode);
	virtual void OnReceive(int nErrorCode);
	virtual void OnClose(int nErrorCode);
	//}}AFX_VIRTUAL

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

// Implementation
protected:
private:
	CWnd *m_pWndOwner;
};

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

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

#endif // !defined(AFX_ELECSOCKET_H__86D9758E_7C24_456C_81ED_4DC3722CCEBF__INCLUDED_)

⌨️ 快捷键说明

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