Home > other >  QT UDP to join multicast failure
QT UDP to join multicast failure

Time:09-29

Imx6dl development board, linux4.9 + qt5.8 environment, call joinMulticastGroup returns false, print the socket - & gt; Error () is QAbstractSocket: : UnknownSocketError, below is the code, anyone know the reason why returns false? Bool result=false; M_udpsocket_recive=new QUdpSocket (this); QHostAddress McAst_addr (" 224.0.0.17 "); Result=m_udpsocket_recive - & gt; Bind (QHostAddress: : AnyIPv4, 45454, QUdpSocket: : ReuseAddressHint); QDebug () & lt; <" Phone_Init1 result "& lt; CodePudding user response:

Don't need to give the result when binding

CodePudding user response:

The building Lord found the solution?
  • Related