LivoxProto1: Rename pcloudDataSocketDesc=>pcloudDataFdDesc
This commit is contained in:
@@ -78,10 +78,10 @@ void UdpCommandDemuxer::stop()
|
||||
cmdEndpointFdDesc.reset();
|
||||
}
|
||||
|
||||
if (pcloudDataSocketDesc)
|
||||
if (pcloudDataFdDesc)
|
||||
{
|
||||
pcloudDataSocketDesc->cancel();
|
||||
pcloudDataSocketDesc.reset();
|
||||
pcloudDataFdDesc->cancel();
|
||||
pcloudDataFdDesc.reset();
|
||||
}
|
||||
|
||||
isActive.store(false);
|
||||
@@ -201,7 +201,7 @@ void UdpCommandDemuxer::setupPcloudDataSocket()
|
||||
}
|
||||
|
||||
// Create boost wrapper for async operations
|
||||
pcloudDataSocketDesc = std::make_shared<boost::asio::posix::stream_descriptor>(
|
||||
pcloudDataFdDesc = std::make_shared<boost::asio::posix::stream_descriptor>(
|
||||
componentThread->getIoService(), socketGuard.getFd());
|
||||
|
||||
// Transfer ownership, prevent auto-close
|
||||
|
||||
@@ -58,12 +58,12 @@ public:
|
||||
std::shared_ptr<boost::asio::posix::stream_descriptor>
|
||||
getPcloudDataFdDesc() const
|
||||
{
|
||||
return pcloudDataSocketDesc;
|
||||
return pcloudDataFdDesc;
|
||||
}
|
||||
|
||||
private:
|
||||
// Socket and async objects
|
||||
std::shared_ptr<boost::asio::posix::stream_descriptor> pcloudDataSocketDesc;
|
||||
std::shared_ptr<boost::asio::posix::stream_descriptor> pcloudDataFdDesc;
|
||||
// Socket and async objects
|
||||
std::shared_ptr<boost::asio::posix::stream_descriptor> cmdEndpointFdDesc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user