外出测试

This commit is contained in:
hm
2020-08-04 17:19:40 +08:00
parent c7baf9ad3b
commit 753d2f5f1f
11 changed files with 55 additions and 34 deletions
+3 -1
View File
@@ -23,6 +23,8 @@ DLink::DLink(QObject *parent) : QObject(parent)
this,SIGNAL(showMessage(QString,int)),Qt::DirectConnection);
// mavlinknode->start();
//其他协议节点。。。
}
@@ -214,7 +216,7 @@ bool DLink::setupClient(const QHostAddress &remote_addr, int remote_port, int lo
{
bool isSuccess = false;
Clientsock = new QUdpSocket(this);
if (Clientsock->bind(QHostAddress::Any, local_port))
if (Clientsock->bind(QHostAddress::AnyIPv4, local_port))
{
Clientsock->joinMulticastGroup(remote_addr);//加入组播