mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-03 06:24:48 -04:00
SampleSourceFifo refactoring and Tx code reorganization
This commit is contained in:
@@ -17,20 +17,11 @@
|
||||
|
||||
#include "remotesource.h"
|
||||
|
||||
#if (defined _WIN32_) || (defined _MSC_VER)
|
||||
#include "windows_time.h"
|
||||
#include <stdint.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <boost/crc.hpp>
|
||||
#include <boost/cstdint.hpp>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkReply>
|
||||
#include <QBuffer>
|
||||
#include <QThread>
|
||||
|
||||
#include "SWGChannelSettings.h"
|
||||
#include "SWGChannelReport.h"
|
||||
@@ -38,12 +29,10 @@
|
||||
|
||||
#include "dsp/devicesamplesink.h"
|
||||
#include "device/deviceapi.h"
|
||||
#include "dsp/upchannelizer.h"
|
||||
#include "dsp/threadedbasebandsamplesource.h"
|
||||
#include "util/timeutil.h"
|
||||
|
||||
#include "remotesourcethread.h"
|
||||
#include "remotesourcebaseband.h"
|
||||
|
||||
MESSAGE_CLASS_DEFINITION(RemoteSource::MsgSampleRateNotification, Message)
|
||||
MESSAGE_CLASS_DEFINITION(RemoteSource::MsgConfigureRemoteSource, Message)
|
||||
MESSAGE_CLASS_DEFINITION(RemoteSource::MsgQueryStreamData, Message)
|
||||
MESSAGE_CLASS_DEFINITION(RemoteSource::MsgReportStreamData, Message)
|
||||
@@ -53,21 +42,17 @@ const QString RemoteSource::m_channelId ="RemoteSource";
|
||||
|
||||
RemoteSource::RemoteSource(DeviceAPI *deviceAPI) :
|
||||
ChannelAPI(m_channelIdURI, ChannelAPI::StreamSingleSource),
|
||||
m_deviceAPI(deviceAPI),
|
||||
m_sourceThread(0),
|
||||
m_running(false),
|
||||
m_nbCorrectableErrors(0),
|
||||
m_nbUncorrectableErrors(0)
|
||||
m_deviceAPI(deviceAPI)
|
||||
{
|
||||
setObjectName(m_channelId);
|
||||
|
||||
connect(&m_dataQueue, SIGNAL(dataBlockEnqueued()), this, SLOT(handleData()), Qt::QueuedConnection);
|
||||
m_cm256p = m_cm256.isInitialized() ? &m_cm256 : 0;
|
||||
m_currentMeta.init();
|
||||
m_thread = new QThread(this);
|
||||
m_basebandSource = new RemoteSourceBaseband();
|
||||
m_basebandSource->moveToThread(m_thread);
|
||||
|
||||
m_channelizer = new UpChannelizer(this);
|
||||
m_threadedChannelizer = new ThreadedBasebandSampleSource(m_channelizer, this);
|
||||
m_deviceAPI->addChannelSource(m_threadedChannelizer);
|
||||
applySettings(m_settings, true);
|
||||
|
||||
m_deviceAPI->addChannelSource(this);
|
||||
m_deviceAPI->addChannelSourceAPI(this);
|
||||
|
||||
m_networkManager = new QNetworkAccessManager();
|
||||
@@ -79,78 +64,35 @@ RemoteSource::~RemoteSource()
|
||||
disconnect(m_networkManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(networkManagerFinished(QNetworkReply*)));
|
||||
delete m_networkManager;
|
||||
m_deviceAPI->removeChannelSourceAPI(this);
|
||||
m_deviceAPI->removeChannelSource(m_threadedChannelizer);
|
||||
delete m_threadedChannelizer;
|
||||
delete m_channelizer;
|
||||
}
|
||||
|
||||
void RemoteSource::pull(Sample& sample)
|
||||
{
|
||||
m_dataReadQueue.readSample(sample, true); // true is scale for Tx
|
||||
}
|
||||
|
||||
void RemoteSource::pullAudio(int nbSamples)
|
||||
{
|
||||
(void) nbSamples;
|
||||
m_deviceAPI->removeChannelSource(this);
|
||||
delete m_basebandSource;
|
||||
delete m_thread;
|
||||
}
|
||||
|
||||
void RemoteSource::start()
|
||||
{
|
||||
qDebug("RemoteSource::start");
|
||||
|
||||
if (m_running) {
|
||||
stop();
|
||||
}
|
||||
|
||||
m_sourceThread = new RemoteSourceThread(&m_dataQueue);
|
||||
m_sourceThread->startStop(true);
|
||||
m_sourceThread->dataBind(m_settings.m_dataAddress, m_settings.m_dataPort);
|
||||
m_running = true;
|
||||
m_basebandSource->reset();
|
||||
m_thread->start();
|
||||
RemoteSourceBaseband::MsgConfigureRemoteSourceWork *msg = RemoteSourceBaseband::MsgConfigureRemoteSourceWork::create(true);
|
||||
m_basebandSource->getInputMessageQueue()->push(msg);
|
||||
}
|
||||
|
||||
void RemoteSource::stop()
|
||||
{
|
||||
qDebug("RemoteSource::stop");
|
||||
|
||||
if (m_sourceThread != 0)
|
||||
{
|
||||
m_sourceThread->startStop(false);
|
||||
m_sourceThread->deleteLater();
|
||||
m_sourceThread = 0;
|
||||
}
|
||||
|
||||
m_running = false;
|
||||
m_thread->exit();
|
||||
m_thread->wait();
|
||||
}
|
||||
|
||||
void RemoteSource::setDataLink(const QString& dataAddress, uint16_t dataPort)
|
||||
void RemoteSource::pull(SampleVector::iterator& begin, unsigned int nbSamples)
|
||||
{
|
||||
RemoteSourceSettings settings = m_settings;
|
||||
settings.m_dataAddress = dataAddress;
|
||||
settings.m_dataPort = dataPort;
|
||||
|
||||
MsgConfigureRemoteSource *msg = MsgConfigureRemoteSource::create(settings, false);
|
||||
m_inputMessageQueue.push(msg);
|
||||
m_basebandSource->pull(begin, nbSamples);
|
||||
}
|
||||
|
||||
bool RemoteSource::handleMessage(const Message& cmd)
|
||||
{
|
||||
if (UpChannelizer::MsgChannelizerNotification::match(cmd))
|
||||
{
|
||||
UpChannelizer::MsgChannelizerNotification& notif = (UpChannelizer::MsgChannelizerNotification&) cmd;
|
||||
qDebug() << "RemoteSource::handleMessage: MsgChannelizerNotification:"
|
||||
<< " basebandSampleRate: " << notif.getBasebandSampleRate()
|
||||
<< " outputSampleRate: " << notif.getSampleRate()
|
||||
<< " inputFrequencyOffset: " << notif.getFrequencyOffset();
|
||||
|
||||
if (m_guiMessageQueue)
|
||||
{
|
||||
MsgSampleRateNotification *msg = MsgSampleRateNotification::create(notif.getBasebandSampleRate());
|
||||
m_guiMessageQueue->push(msg);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
else if (MsgConfigureRemoteSource::match(cmd))
|
||||
if (MsgConfigureRemoteSource::match(cmd))
|
||||
{
|
||||
MsgConfigureRemoteSource& cfg = (MsgConfigureRemoteSource&) cmd;
|
||||
qDebug() << "MsgConfigureRemoteSource::handleMessage: MsgConfigureRemoteSource";
|
||||
@@ -162,21 +104,22 @@ bool RemoteSource::handleMessage(const Message& cmd)
|
||||
{
|
||||
if (m_guiMessageQueue)
|
||||
{
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, 0);
|
||||
uint64_t nowus = TimeUtil::nowus();
|
||||
RemoteDataReadQueue& dataReadQueue = m_basebandSource->getDataQueue();
|
||||
const RemoteMetaDataFEC& currentMeta = m_basebandSource->getRemoteMetaDataFEC();
|
||||
|
||||
MsgReportStreamData *msg = MsgReportStreamData::create(
|
||||
tv.tv_sec,
|
||||
tv.tv_usec,
|
||||
m_dataReadQueue.size(),
|
||||
m_dataReadQueue.length(),
|
||||
m_dataReadQueue.readSampleCount(),
|
||||
m_nbCorrectableErrors,
|
||||
m_nbUncorrectableErrors,
|
||||
m_currentMeta.m_nbOriginalBlocks,
|
||||
m_currentMeta.m_nbFECBlocks,
|
||||
m_currentMeta.m_centerFrequency,
|
||||
m_currentMeta.m_sampleRate);
|
||||
nowus / 1000000U,
|
||||
nowus % 1000000U,
|
||||
dataReadQueue.size(),
|
||||
dataReadQueue.length(),
|
||||
dataReadQueue.readSampleCount(),
|
||||
m_basebandSource->getNbCorrectableErrors(),
|
||||
m_basebandSource->getNbUncorrectableErrors(),
|
||||
currentMeta.m_nbOriginalBlocks,
|
||||
currentMeta.m_nbFECBlocks,
|
||||
currentMeta.m_centerFrequency,
|
||||
currentMeta.m_sampleRate);
|
||||
m_guiMessageQueue->push(msg);
|
||||
}
|
||||
|
||||
@@ -213,28 +156,28 @@ void RemoteSource::applySettings(const RemoteSourceSettings& settings, bool forc
|
||||
qDebug() << "RemoteSource::applySettings:"
|
||||
<< " m_dataAddress: " << settings.m_dataAddress
|
||||
<< " m_dataPort: " << settings.m_dataPort
|
||||
<< " m_rgbColor: " << settings.m_rgbColor
|
||||
<< " m_title: " << settings.m_title
|
||||
<< " m_useReverseAPI: " << settings.m_useReverseAPI
|
||||
<< " m_reverseAPIAddress: " << settings.m_reverseAPIAddress
|
||||
<< " m_reverseAPIChannelIndex: " << settings.m_reverseAPIChannelIndex
|
||||
<< " m_reverseAPIDeviceIndex: " << settings.m_reverseAPIDeviceIndex
|
||||
<< " m_reverseAPIPort: " << settings.m_reverseAPIPort
|
||||
<< " force: " << force;
|
||||
|
||||
bool change = false;
|
||||
QList<QString> reverseAPIKeys;
|
||||
|
||||
if ((m_settings.m_dataAddress != settings.m_dataAddress) || force)
|
||||
{
|
||||
if ((m_settings.m_dataAddress != settings.m_dataAddress) || force) {
|
||||
reverseAPIKeys.append("dataAddress");
|
||||
change = true;
|
||||
}
|
||||
|
||||
if ((m_settings.m_dataPort != settings.m_dataPort) || force)
|
||||
{
|
||||
if ((m_settings.m_dataPort != settings.m_dataPort) || force) {
|
||||
reverseAPIKeys.append("dataPort");
|
||||
change = true;
|
||||
}
|
||||
|
||||
if (change && m_sourceThread)
|
||||
{
|
||||
reverseAPIKeys.append("sourceThread");
|
||||
m_sourceThread->dataBind(settings.m_dataAddress, settings.m_dataPort);
|
||||
}
|
||||
RemoteSourceBaseband::MsgConfigureRemoteSourceBaseband *msg = RemoteSourceBaseband::MsgConfigureRemoteSourceBaseband::create(settings, force);
|
||||
m_basebandSource->getInputMessageQueue()->push(msg);
|
||||
|
||||
if (settings.m_useReverseAPI)
|
||||
{
|
||||
@@ -249,142 +192,6 @@ void RemoteSource::applySettings(const RemoteSourceSettings& settings, bool forc
|
||||
m_settings = settings;
|
||||
}
|
||||
|
||||
void RemoteSource::handleDataBlock(RemoteDataBlock* dataBlock)
|
||||
{
|
||||
(void) dataBlock;
|
||||
if (dataBlock->m_rxControlBlock.m_blockCount < RemoteNbOrginalBlocks)
|
||||
{
|
||||
qWarning("RemoteSource::handleDataBlock: incomplete data block: not processing");
|
||||
}
|
||||
else
|
||||
{
|
||||
int blockCount = 0;
|
||||
|
||||
for (int blockIndex = 0; blockIndex < 256; blockIndex++)
|
||||
{
|
||||
if ((blockIndex == 0) && (dataBlock->m_rxControlBlock.m_metaRetrieved))
|
||||
{
|
||||
m_cm256DescriptorBlocks[blockCount].Index = 0;
|
||||
m_cm256DescriptorBlocks[blockCount].Block = (void *) &(dataBlock->m_superBlocks[0].m_protectedBlock);
|
||||
blockCount++;
|
||||
}
|
||||
else if (dataBlock->m_superBlocks[blockIndex].m_header.m_blockIndex != 0)
|
||||
{
|
||||
m_cm256DescriptorBlocks[blockCount].Index = dataBlock->m_superBlocks[blockIndex].m_header.m_blockIndex;
|
||||
m_cm256DescriptorBlocks[blockCount].Block = (void *) &(dataBlock->m_superBlocks[blockIndex].m_protectedBlock);
|
||||
blockCount++;
|
||||
}
|
||||
}
|
||||
|
||||
//qDebug("RemoteSource::handleDataBlock: frame: %u blocks: %d", dataBlock.m_rxControlBlock.m_frameIndex, blockCount);
|
||||
|
||||
// Need to use the CM256 recovery
|
||||
if (m_cm256p &&(dataBlock->m_rxControlBlock.m_originalCount < RemoteNbOrginalBlocks))
|
||||
{
|
||||
qDebug("RemoteSource::handleDataBlock: %d recovery blocks", dataBlock->m_rxControlBlock.m_recoveryCount);
|
||||
CM256::cm256_encoder_params paramsCM256;
|
||||
paramsCM256.BlockBytes = sizeof(RemoteProtectedBlock); // never changes
|
||||
paramsCM256.OriginalCount = RemoteNbOrginalBlocks; // never changes
|
||||
|
||||
if (m_currentMeta.m_tv_sec == 0) {
|
||||
paramsCM256.RecoveryCount = dataBlock->m_rxControlBlock.m_recoveryCount;
|
||||
} else {
|
||||
paramsCM256.RecoveryCount = m_currentMeta.m_nbFECBlocks;
|
||||
}
|
||||
|
||||
// update counters
|
||||
if (dataBlock->m_rxControlBlock.m_originalCount < RemoteNbOrginalBlocks - paramsCM256.RecoveryCount) {
|
||||
m_nbUncorrectableErrors += RemoteNbOrginalBlocks - paramsCM256.RecoveryCount - dataBlock->m_rxControlBlock.m_originalCount;
|
||||
} else {
|
||||
m_nbCorrectableErrors += dataBlock->m_rxControlBlock.m_recoveryCount;
|
||||
}
|
||||
|
||||
if (m_cm256.cm256_decode(paramsCM256, m_cm256DescriptorBlocks)) // CM256 decode
|
||||
{
|
||||
qWarning() << "RemoteSource::handleDataBlock: decode CM256 error:"
|
||||
<< " m_originalCount: " << dataBlock->m_rxControlBlock.m_originalCount
|
||||
<< " m_recoveryCount: " << dataBlock->m_rxControlBlock.m_recoveryCount;
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int ir = 0; ir < dataBlock->m_rxControlBlock.m_recoveryCount; ir++) // restore missing blocks
|
||||
{
|
||||
int recoveryIndex = RemoteNbOrginalBlocks - dataBlock->m_rxControlBlock.m_recoveryCount + ir;
|
||||
int blockIndex = m_cm256DescriptorBlocks[recoveryIndex].Index;
|
||||
RemoteProtectedBlock *recoveredBlock =
|
||||
(RemoteProtectedBlock *) m_cm256DescriptorBlocks[recoveryIndex].Block;
|
||||
memcpy((void *) &(dataBlock->m_superBlocks[blockIndex].m_protectedBlock), recoveredBlock, sizeof(RemoteProtectedBlock));
|
||||
if ((blockIndex == 0) && !dataBlock->m_rxControlBlock.m_metaRetrieved) {
|
||||
dataBlock->m_rxControlBlock.m_metaRetrieved = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Validate block zero and retrieve its data
|
||||
if (dataBlock->m_rxControlBlock.m_metaRetrieved)
|
||||
{
|
||||
RemoteMetaDataFEC *metaData = (RemoteMetaDataFEC *) &(dataBlock->m_superBlocks[0].m_protectedBlock);
|
||||
boost::crc_32_type crc32;
|
||||
crc32.process_bytes(metaData, sizeof(RemoteMetaDataFEC)-4);
|
||||
|
||||
if (crc32.checksum() == metaData->m_crc32)
|
||||
{
|
||||
if (!(m_currentMeta == *metaData))
|
||||
{
|
||||
printMeta("RemoteSource::handleDataBlock", metaData);
|
||||
|
||||
if (m_currentMeta.m_sampleRate != metaData->m_sampleRate)
|
||||
{
|
||||
m_channelizer->configure(m_channelizer->getInputMessageQueue(), metaData->m_sampleRate, 0);
|
||||
m_dataReadQueue.setSize(calculateDataReadQueueSize(metaData->m_sampleRate));
|
||||
}
|
||||
}
|
||||
|
||||
m_currentMeta = *metaData;
|
||||
}
|
||||
else
|
||||
{
|
||||
qWarning() << "RemoteSource::handleDataBlock: recovered meta: invalid CRC32";
|
||||
}
|
||||
}
|
||||
|
||||
m_dataReadQueue.push(dataBlock); // Push into R/W buffer
|
||||
}
|
||||
}
|
||||
|
||||
void RemoteSource::handleData()
|
||||
{
|
||||
RemoteDataBlock* dataBlock;
|
||||
|
||||
while (m_running && ((dataBlock = m_dataQueue.pop()) != 0)) {
|
||||
handleDataBlock(dataBlock);
|
||||
}
|
||||
}
|
||||
|
||||
void RemoteSource::printMeta(const QString& header, RemoteMetaDataFEC *metaData)
|
||||
{
|
||||
qDebug().noquote() << header << ": "
|
||||
<< "|" << metaData->m_centerFrequency
|
||||
<< ":" << metaData->m_sampleRate
|
||||
<< ":" << (int) (metaData->m_sampleBytes & 0xF)
|
||||
<< ":" << (int) metaData->m_sampleBits
|
||||
<< ":" << (int) metaData->m_nbOriginalBlocks
|
||||
<< ":" << (int) metaData->m_nbFECBlocks
|
||||
<< "|" << metaData->m_tv_sec
|
||||
<< ":" << metaData->m_tv_usec
|
||||
<< "|";
|
||||
}
|
||||
|
||||
uint32_t RemoteSource::calculateDataReadQueueSize(int sampleRate)
|
||||
{
|
||||
// scale for 20 blocks at 48 kS/s. Take next even number.
|
||||
uint32_t maxSize = sampleRate / 2400;
|
||||
maxSize = (maxSize % 2 == 0) ? maxSize : maxSize + 1;
|
||||
qDebug("RemoteSource::calculateDataReadQueueSize: set max queue size to %u blocks", maxSize);
|
||||
return maxSize;
|
||||
}
|
||||
|
||||
int RemoteSource::webapiSettingsGet(
|
||||
SWGSDRangel::SWGChannelSettings& response,
|
||||
QString& errorMessage)
|
||||
@@ -505,20 +312,21 @@ void RemoteSource::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings&
|
||||
|
||||
void RemoteSource::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response)
|
||||
{
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, 0);
|
||||
uint64_t nowus = TimeUtil::nowus();
|
||||
RemoteDataReadQueue& dataReadQueue = m_basebandSource->getDataQueue();
|
||||
const RemoteMetaDataFEC& currentMeta = m_basebandSource->getRemoteMetaDataFEC();
|
||||
|
||||
response.getRemoteSourceReport()->setTvSec(tv.tv_sec);
|
||||
response.getRemoteSourceReport()->setTvUSec(tv.tv_usec);
|
||||
response.getRemoteSourceReport()->setQueueSize(m_dataReadQueue.size());
|
||||
response.getRemoteSourceReport()->setQueueLength(m_dataReadQueue.length());
|
||||
response.getRemoteSourceReport()->setSamplesCount(m_dataReadQueue.readSampleCount());
|
||||
response.getRemoteSourceReport()->setCorrectableErrorsCount(m_nbCorrectableErrors);
|
||||
response.getRemoteSourceReport()->setUncorrectableErrorsCount(m_nbUncorrectableErrors);
|
||||
response.getRemoteSourceReport()->setNbOriginalBlocks(m_currentMeta.m_nbOriginalBlocks);
|
||||
response.getRemoteSourceReport()->setNbFecBlocks(m_currentMeta.m_nbFECBlocks);
|
||||
response.getRemoteSourceReport()->setCenterFreq(m_currentMeta.m_centerFrequency);
|
||||
response.getRemoteSourceReport()->setSampleRate(m_currentMeta.m_sampleRate);
|
||||
response.getRemoteSourceReport()->setTvSec(nowus / 1000000U);
|
||||
response.getRemoteSourceReport()->setTvUSec(nowus % 1000000U);
|
||||
response.getRemoteSourceReport()->setQueueSize(dataReadQueue.size());
|
||||
response.getRemoteSourceReport()->setQueueLength(dataReadQueue.length());
|
||||
response.getRemoteSourceReport()->setSamplesCount(dataReadQueue.readSampleCount());
|
||||
response.getRemoteSourceReport()->setCorrectableErrorsCount(m_basebandSource->getNbCorrectableErrors());
|
||||
response.getRemoteSourceReport()->setUncorrectableErrorsCount(m_basebandSource->getNbUncorrectableErrors());
|
||||
response.getRemoteSourceReport()->setNbOriginalBlocks(currentMeta.m_nbOriginalBlocks);
|
||||
response.getRemoteSourceReport()->setNbFecBlocks(currentMeta.m_nbFECBlocks);
|
||||
response.getRemoteSourceReport()->setCenterFreq(currentMeta.m_centerFrequency);
|
||||
response.getRemoteSourceReport()->setSampleRate(currentMeta.m_sampleRate);
|
||||
response.getRemoteSourceReport()->setDeviceCenterFreq(m_deviceAPI->getSampleSink()->getCenterFrequency()/1000);
|
||||
response.getRemoteSourceReport()->setDeviceSampleRate(m_deviceAPI->getSampleSink()->getSampleRate());
|
||||
}
|
||||
@@ -556,13 +364,14 @@ void RemoteSource::webapiReverseSendSettings(QList<QString>& channelSettingsKeys
|
||||
m_networkRequest.setUrl(QUrl(channelSettingsURL));
|
||||
m_networkRequest.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
|
||||
|
||||
QBuffer *buffer=new QBuffer();
|
||||
QBuffer *buffer = new QBuffer();
|
||||
buffer->open((QBuffer::ReadWrite));
|
||||
buffer->write(swgChannelSettings->asJson().toUtf8());
|
||||
buffer->seek(0);
|
||||
|
||||
// Always use PATCH to avoid passing reverse API settings
|
||||
m_networkManager->sendCustomRequest(m_networkRequest, "PATCH", buffer);
|
||||
QNetworkReply *reply = m_networkManager->sendCustomRequest(m_networkRequest, "PATCH", buffer);
|
||||
buffer->setParent(reply);
|
||||
|
||||
delete swgChannelSettings;
|
||||
}
|
||||
@@ -577,10 +386,13 @@ void RemoteSource::networkManagerFinished(QNetworkReply *reply)
|
||||
<< " error(" << (int) replyError
|
||||
<< "): " << replyError
|
||||
<< ": " << reply->errorString();
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
QString answer = reply->readAll();
|
||||
answer.chop(1); // remove last \n
|
||||
qDebug("RemoteSource::networkManagerFinished: reply:\n%s", answer.toStdString().c_str());
|
||||
}
|
||||
|
||||
QString answer = reply->readAll();
|
||||
answer.chop(1); // remove last \n
|
||||
qDebug("RemoteSource::networkManagerFinished: reply:\n%s", answer.toStdString().c_str());
|
||||
reply->deleteLater();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user