📄 socksrv.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -