修改三方通话功能,在发起三方通话时,先保持住主叫,然后再拉回主叫到会议

NetLinkClient.h 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*************************************************************************
  2. 【文件名】 NetLinkClient.h
  3. 【功能模块和目的】 网络连接客户端控制类头文件
  4. 【开发者及日期】 郑石诺 2015/03/19
  5. 【版本】 V1.0.0
  6. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  7. 【更改记录】
  8. *************************************************************************/
  9. #pragma once
  10. #include "PduLinkInc.h"
  11. class CPduEntity;
  12. class CNetLinkMgr;
  13. /*************************************************************************
  14. 【类名】 CNetLinkClient
  15. 【功能】
  16. 【接口说明】 网络连接客户端控制类
  17. 【开发者及日期】 郑石诺 2015/03/19
  18. 【版本】 V1.0.0
  19. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  20. 【更改记录】
  21. *************************************************************************/
  22. class CNetLinkClient : public CAsyncSocket
  23. {
  24. public:
  25. CNetLinkClient(CNetLinkMgr* a_pParent);
  26. virtual ~CNetLinkClient(void);
  27. bool mainClientMark(void) const { return m_IsMainClient; }
  28. bool& mainClientMark(void) { return m_IsMainClient; }
  29. const CString& farEndIp(void) const { return m_FarEndIp; }
  30. UINT farEndPort(void) const { return m_FarEndPort; }
  31. void setPeerInfo(PDU_DEV_TYPE a_DevType, int a_DevId);
  32. bool send(CPduEntity& a_Pdu);
  33. // SOCKET重载函数
  34. void OnReceive(int ErrorCode);
  35. void OnConnect(int ErrorCode);
  36. void OnClose(int ErrorCode);
  37. private:
  38. void __initBuffer(void);
  39. bool __sendBuffer(UCHAR a_Buf[], UINT a_BufLen);
  40. private:
  41. bool m_IsMainClient;
  42. CNetLinkMgr* m_pParent;
  43. CString m_FarEndIp; // far end IP
  44. UINT m_FarEndPort; // far end port
  45. PDU_DEV_TYPE m_PeerType; // 对端设备类型
  46. int m_PeerId; // 对端设备ID
  47. // SOCKET读取相关变量
  48. USHORT m_HasRead; // 已读取的数据缓冲区长度
  49. UCHAR m_ReadBuffer[PDU_HEAD_LEN + PDU_MAX_DATA_LEN]; // 已读取的缓冲区内容
  50. };