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

📄 talklisten.h

📁 简单聊天室服务器源码
💻 H
字号:
#if !defined(AFX_TALKLISTEN_H__6EEED8CF_B1FF_11D3_97CA_0080C8EC42B6__INCLUDED_)
#define AFX_TALKLISTEN_H__6EEED8CF_B1FF_11D3_97CA_0080C8EC42B6__INCLUDED_

#include "Connect.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TalkListen.h : header file
//
#define MAX_NUM 32
#include "Connect.h"

/////////////////////////////////////////////////////////////////////////////
// CTalkListen command target

class CTalkListen : public CAsyncSocket
{
// Attributes
public:

// Operations
public:
	CTalkListen(CWnd *pWnd);
	virtual ~CTalkListen();

// Overrides
public:
	void NoticeDelGuest(CConnect *pDel);
	void NoticeNewGuest(CConnect *pNew);
	void TalkPrivate(CConnect *pGuest);
	void TalkPublic(CString &strBuf,DWORD dwLength);
	CConnect * FindGuest(CString &str);
	CWnd * m_pWnd;
	void Delete(CConnect *p);
	CConnect *m_pHeadConnect,*m_pEndConnect;
	int m_nConnectNum;
	DWORD m_Msg[3];
	void CTalkListen::TalkPrivate(CConnect *pObject,CString &strBuf,DWORD dwLength)
	{
		if(pObject)
			pObject->SendData(NET_DATA,dwLength,0,strBuf);
	}

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTalkListen)
	public:
	virtual void OnAccept(int nErrorCode);
	//}}AFX_VIRTUAL

	// Generated message map functions
	//{{AFX_MSG(CTalkListen)
		// 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_TALKLISTEN_H__6EEED8CF_B1FF_11D3_97CA_0080C8EC42B6__INCLUDED_)

⌨️ 快捷键说明

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