| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*************************************************************************
- 【文件名】 ChanTrunk.h
- 【功能模块和目的】 中继通道类头文件
- 【开发者及日期】 郑石诺 2016/07/13
- 【版本】 V1.0.0
- 【版权信息】 Copyright (C)2016 河南华谊网络科技有限公司
- 【更改记录】
- *************************************************************************/
- #pragma once
- #include "virtualchan.h"
- /*************************************************************************
- 【类名】 CChanTrunk
- 【功能】
- 【接口说明】 中继通道类
- 【开发者及日期】 郑石诺 2016/07/13
- 【版本】 V1.0.0
- 【版权信息】 Copyright (C)2016 河南华谊网络科技有限公司
- 【更改记录】
- *************************************************************************/
- class CChanTrunk : public CVirtualChan
- {
- public:
- CChanTrunk(CFsProxy* pParent, UINT ChanNo);
- virtual ~CChanTrunk(void);
- virtual DEV_RES_TYPE type(void) const { return DEV_RES_TYPE_TRUNK; }
- virtual bool isVoid(void) const { return false; }
- virtual bool isFree(void) const;
- virtual void regist(void) const;
- virtual void onChanEvent(PCHAN_EVENT_NOTIFY pNotify);
- virtual void onSessionChanEvent(CVirtualChan* pChanSession, PCHAN_EVENT_NOTIFY pNotify);
- // ESL客户端连接处理
- bool isStopConnect(void) const { return m_StopConnect; }
- bool processCallConnect(esl_handle_t* pHandle);
- void processCallDisconnect(void);
- void onAppExecuted(PAPP_EXEC_NOTIFY pNotify);
- private:
- friend class CFsProxy;
- esl_handle_t* m_pEslHandle;
- volatile bool m_StopConnect;
- };
|