mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-12 15:23:42 +08:00
d6d1a71794
version: sunnypilot v2026.003.000 (dev)
date: 2026-09-12T03:35:40
master commit: b67898fac4
23 lines
517 B
C++
23 lines
517 B
C++
#pragma once
|
|
|
|
#include "tools/cabana/streams/livestream.h"
|
|
|
|
#include <string>
|
|
#include <sys/types.h>
|
|
|
|
class DeviceStream : public LiveStream {
|
|
public:
|
|
DeviceStream(std::string address = {});
|
|
~DeviceStream();
|
|
inline std::string routeName() const override {
|
|
return "Live Streaming From " + (zmq_address.empty() ? std::string("127.0.0.1") : zmq_address);
|
|
}
|
|
|
|
protected:
|
|
void start() override;
|
|
void streamThread() override;
|
|
void stopBridge();
|
|
pid_t bridge_pid = -1;
|
|
const std::string zmq_address;
|
|
};
|