talklisten.h

来自「简单聊天室服务器源码」· C头文件 代码 · 共 65 行

H
65
字号
#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 + =
减小字号Ctrl + -
显示快捷键?