livoxGen1: Make use of livoxProto1_getPcloudDataFdDesc

This commit is contained in:
2025-11-02 19:16:22 -04:00
parent b3bf0e2cb9
commit d88dd2cf44
5 changed files with 38 additions and 34 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ livoxProto1_getPcloudDataFdDesc(void)
+ ": DeviceManager not initialized");
}
return protoState.deviceManager->udpCommandDemuxer.pcloudDataSocketDesc;
return protoState.deviceManager->udpCommandDemuxer.getPcloudDataFdDesc();
}
} // extern "C"
+1
View File
@@ -6,6 +6,7 @@
#include <cstdint>
#include <functional>
#include <callback.h>
#include <boost/asio/posix/stream_descriptor.hpp>
// Forward declarations
namespace smo {
@@ -53,6 +53,13 @@ public:
return cmdEndpointFdDesc;
}
// Get shared pointer to pcloud data fd for use in IoUringAssemblyEngine
std::shared_ptr<boost::asio::posix::stream_descriptor>
getPcloudDataFdDesc() const
{
return pcloudDataSocketDesc;
}
private:
void setupSockets();
void setupCommandSocket();