hd

ChanTrunk.h 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*************************************************************************
  2. 【文件名】 ChanTrunk.h
  3. 【功能模块和目的】 中继通道类头文件
  4. 【开发者及日期】 郑石诺 2016/07/13
  5. 【版本】 V1.0.0
  6. 【版权信息】 Copyright (C)2016 河南华谊网络科技有限公司
  7. 【更改记录】
  8. *************************************************************************/
  9. #pragma once
  10. #include "virtualchan.h"
  11. /*************************************************************************
  12. 【类名】 CChanTrunk
  13. 【功能】
  14. 【接口说明】 中继通道类
  15. 【开发者及日期】 郑石诺 2016/07/13
  16. 【版本】 V1.0.0
  17. 【版权信息】 Copyright (C)2016 河南华谊网络科技有限公司
  18. 【更改记录】
  19. *************************************************************************/
  20. class CChanTrunk : public CVirtualChan
  21. {
  22. public:
  23. CChanTrunk(CFsProxy* pParent, UINT ChanNo);
  24. virtual ~CChanTrunk(void);
  25. virtual DEV_RES_TYPE type(void) const { return DEV_RES_TYPE_TRUNK; }
  26. virtual bool isVoid(void) const { return false; }
  27. virtual bool isFree(void) const;
  28. virtual void regist(void) const;
  29. virtual void onChanEvent(PCHAN_EVENT_NOTIFY pNotify);
  30. virtual void onSessionChanEvent(CVirtualChan* pChanSession, PCHAN_EVENT_NOTIFY pNotify);
  31. // ESL客户端连接处理
  32. bool isStopConnect(void) const { return m_StopConnect; }
  33. bool processCallConnect(esl_handle_t* pHandle);
  34. void processCallDisconnect(void);
  35. void onAppExecuted(PAPP_EXEC_NOTIFY pNotify);
  36. private:
  37. friend class CFsProxy;
  38. esl_handle_t* m_pEslHandle;
  39. volatile bool m_StopConnect;
  40. };