⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serverthread.h

📁 自制的双子球游戏
💻 H
字号:
#if !defined(AFX_SERVERTHREAD_H__3BCD1379_26FF_4777_8E24_7D3E578D93FF__INCLUDED_)
#define AFX_SERVERTHREAD_H__3BCD1379_26FF_4777_8E24_7D3E578D93FF__INCLUDED_

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

#include "Bar.h"
#include "DBallGameDlg.h"
/////////////////////////////////////////////////////////////////////////////
// CServerThread thread

class CServerThread : public CWinThread
{
	DECLARE_DYNCREATE(CServerThread)
protected:
	CServerThread();           // protected constructor used by dynamic creation

// Attributes
public:

// Operations
public:
	void Start();
	void GoRight();
	void GoLeft();
	void Exchange(CDBallGameDlg*);
	void Listening();
	void ReceivingLoop(void);
	void StartListen();
	static UINT ListeningThrd(void * pParam);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CServerThread)
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CServerThread();
	struct	sockaddr_in addr;	
	bool m_bReceiving;
	SOCKET m_ListenSocket,s;
	int ret;
	CBar *Bar_Above;
	CDBallGameDlg * p_CDBallGameDlg;
	CWinThread *m_client;
	// Generated message map functions
	//{{AFX_MSG(CServerThread)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SERVERTHREAD_H__3BCD1379_26FF_4777_8E24_7D3E578D93FF__INCLUDED_)

⌨️ 快捷键说明

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