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

📄 clistensocket.h

📁 WINCE下的播放器
💻 H
字号:
//
// CListenSocket.h
// Created by Qiming Lu, 2002-02-25
// 

#if !defined(__CListenSocket_h__)
#define __CListenSocket_h__

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <afxtempl.h>
#include "CWorkerSocket.h"
#include "MyDef.h"
#include "CMediaSocketClient.h"


//////////////////////////////////////////////////////////////////////////////
class CListenSocket
{
public:
	CListenSocket();
	virtual ~CListenSocket();

// Attributes
protected:
	SOCKET    m_hSocket;      // Socket handle
	bool      m_bListening;   // Listening thread active flag
	HANDLE    m_hThrdFinish;  // Listening thread terminate event
//	int       m_nLimitCount;  // Max connection

public:
//	CList <SOCKET, SOCKET> m_ClientList;

	CMediaSocketClient * m_pWorkerSock; //数据传送Socket对象指针

public:
	bool Create(int inPort);
	bool StartListen(void);
	void StopListen(void);
	bool Accept(void);

	// Limit connection feature
//	void SetLimitConnection(int inMax);
//	int  GetLimitConnection(void);

	static UINT ListeningThrd(void *pParam);

};

#endif // !defined(__CListenSocket_h__)

⌨️ 快捷键说明

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