📄 lsock.h
字号:
#if !defined(AFX_LSOCK_H__9D576B11_3875_11D7_829B_DBF6D8915E47__INCLUDED_)
#define AFX_LSOCK_H__9D576B11_3875_11D7_829B_DBF6D8915E47__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LSock.h : header file
//
/////////////////////////////////////////////////////////////////////////////
typedef struct
{
char m_strName[255]; //客户名字;
char m_dbData[255]; //要发送的数据或信息;
BOOL m_bOnline; //客户是否在线;
}_DATA;
// CRWSock command target
class CMyWsDlg;
class CRWSock : public CSocket
{
// Attributes
public:
_DATA m_Dat;
// Operations
public:
CRWSock(CMyWsDlg* p);
virtual ~CRWSock();
// Overrides
public:
// 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:
private:
CMyWsDlg* m_p;
};
// CLSock command target
class CLSock : public CSocket
{
// Attributes
public:
// Operations
public:
CLSock(CMyWsDlg* p);
virtual ~CLSock();
// Overrides
public:
// 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:
private:
CMyWsDlg* m_p;
};
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LSOCK_H__9D576B11_3875_11D7_829B_DBF6D8915E47__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -