serversock.h
来自「控制机器人完成螺丝刀插孔实验」· C头文件 代码 · 共 118 行
H
118 行
#if !defined(AFX_SERVERSOCK_H__6FE9DD55_650C_4F8C_B55C_18E958CC97A8__INCLUDED_)
#define AFX_SERVERSOCK_H__6FE9DD55_650C_4F8C_B55C_18E958CC97A8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ServerSock.h : header file
//
#include "NewSocket.h"
/////////////////////////////////////////////////////////////////////////////
// CServerSock command target
class CServerSock : public CAsyncSocket
{
// Attributes
public:
CNewSocket* m_pSocket;
BOOL m_bConnected;
// Operations
public:
CServerSock();
virtual ~CServerSock();
// Overrides
public:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CServerSock)
public:
virtual void OnAccept(int nErrorCode);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CServerSock)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
// Implementation
protected:
};
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// CServerDataSock command target
class CServerDataSock : public CAsyncSocket
{
// Attributes
public:
CNewDataSocket* m_pDataSocket;
// Operations
public:
CServerDataSock();
virtual ~CServerDataSock();
// Overrides
public:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CServerDataSock)
public:
virtual void OnAccept(int nErrorCode);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CServerDataSock)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
// Implementation
protected:
};
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// CServerBackDataSock command target
class CServerBackDataSock : public CAsyncSocket
{
// Attributes
public:
CNewBackDataSocket *m_backDataSocket;
// Operations
public:
CServerBackDataSock();
virtual ~CServerBackDataSock();
// Overrides
public:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CServerBackDataSock)
public:
virtual void OnAccept(int nErrorCode);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CServerBackDataSock)
// 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_SERVERSOCK_H__6FE9DD55_650C_4F8C_B55C_18E958CC97A8__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?