socksrv.h

来自「网络家电」· C头文件 代码 · 共 65 行

H
65
字号
#if !defined(AFX_SOCKSRV_H__CB1E8BDE_07B5_4772_9E77_52C5286C934A__INCLUDED_)
#define AFX_SOCKSRV_H__CB1E8BDE_07B5_4772_9E77_52C5286C934A__INCLUDED_

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

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

/////////////////////////////////////////////////////////////////////////////
// CSockSrv command target

class CSockSrv : public CSocket
{
// Attributes
public:

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

// Overrides
public:
	void HandleWhenReceivedData ( char *pData, int nLen);
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSockSrv)
	public:
	virtual void OnAccept(int nErrorCode);
	virtual void OnClose(int nErrorCode);
	virtual void OnConnect(int nErrorCode);
	virtual void OnReceive(int nErrorCode);
	//}}AFX_VIRTUAL

	// Generated message map functions
	//{{AFX_MSG(CSockSrv)
		// 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_SOCKSRV_H__CB1E8BDE_07B5_4772_9E77_52C5286C934A__INCLUDED_)

⌨️ 快捷键说明

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