udpcan.h 491 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "../common/comm.h"
  3. #include "../common/notifier.h"
  4. #include "../common/sensor_socket.h"
  5. #include <thread>
  6. #include <mutex>
  7. #include "EgoClient.h"
  8. class CEgoWindow;
  9. class CMessageQueue;
  10. class CUdpSensor//:public ICanNotify
  11. {
  12. public:
  13. CUdpSensor(CMessageQueue* window);
  14. void Start();
  15. void Stop();
  16. void Notify(int8_t* buffer, int32_t size);
  17. void SetSensorSocket(SensorSocket<CUdpSensor>* can);
  18. private:
  19. CEgoWindow* _window;
  20. SensorSocket<CUdpSensor>* _socket;
  21. };