?? hlsock.h
字號:
#if !defined(AFX_HLSOCK_H__FF747E1D_0DE9_4235_900A_134E53F74E79__INCLUDED_)
#define AFX_HLSOCK_H__FF747E1D_0DE9_4235_900A_134E53F74E79__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// HLSock.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CRWSock command target
#include "Math.h"
#include "Afxtempl.h"
#include "winuser.h"
#define CLT_CLOSE WM_USER+1
#define CLT_TALKING WM_USER+2
typedef struct
{
char m_strName[255]; //客戶名字;
char m_strAction[255];//當前操作;
BOOL m_bOnline; //客戶是否在線;
BOOL m_bAngular; //是否是角度制;
double m_dbData; //數據;
}_DATA;
class CRWSock : public CSocket
{
// Attributes
public:
// Operations
public:
CRWSock();
virtual ~CRWSock();
// Overrides
public:
double Calculate(double x);
_DATA m_Dat;
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRWSock)
public:
virtual void OnReceive(int nErrorCode);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CRWSock)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
// Implementation
protected:
};
/////////////////////////////////////////////////////////////////////////////
// CLSock command target
class CLSock : public CSocket
{
// Attributes
public:
CPtrList m_RWSocks;
// Operations
public:
CLSock();
virtual ~CLSock();
// Overrides
public:
void CloseSocket(CRWSock * pSocket);
void CloseAllSockets();
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLSock)
public:
virtual void OnAccept(int nErrorCode);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CLSock)
// 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_HLSOCK_H__FF747E1D_0DE9_4235_900A_134E53F74E79__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -