外出测试
This commit is contained in:
+3
-1
@@ -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);//加入组播
|
||||
|
||||
|
||||
Reference in New Issue
Block a user