modulecomm_fastrtps_tcp.h 853 B

12345678910111213141516171819202122232425262728
  1. #ifndef MODULECOMM_FASTRTPS_TCP_H
  2. #define MODULECOMM_FASTRTPS_TCP_H
  3. #include "modulecomm_base.h"
  4. #include "modulecomm_impl_tcp.h"
  5. namespace iv {
  6. class modulecomm_fastrtps_tcp: public modulecomm_base
  7. {
  8. public:
  9. modulecomm_fastrtps_tcp();
  10. void RegisterSend(const char * strcommname,const unsigned int nBufSize,const unsigned int nMsgBufCount,unsigned int nListenPort);
  11. void RegisterRecv(const char * strcommname,SMCallBack pCall,const char * strpubip,unsigned int nListenPort);
  12. void RegisterRecvPlus(const char * strcommname,ModuleFun xFun,const char * strpubip,unsigned int nListenPort);
  13. virtual void ModuleSendMsg(const char * strdata,const unsigned int nDataLen);
  14. virtual void Unregister();
  15. virtual void PauseComm();
  16. virtual void ContintuComm();
  17. private:
  18. void * mpif;
  19. };
  20. }
  21. #endif // MODULECOMM_FASTRTPS_TCP_H