JoinMulticastGroup Fail with Unknown Error Linux



  • Hi,
    I have a big problem, I developed an application that join a Multicast group (225.0.0.10 port 3665), in Windows all done! it's fine. porting application in Linux and JoinMulticastGroup Fail with error -1 (unknown).
    Linux Firewall is OFF. Linux is a Mint 14.

    QtCreator 2.8.1 on Qt 5.1.1 and GCC 4.6.1 32bit. Local eth0 IP is 10.34.10.13

    The only strange warning I have is in Application output at App start it show this:
    "Debugging starts
    &"warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device\n"

    here is simple test code:

    @ QUdpSocket *consolesUdpSocket = new QUdpSocket(this);

    if(!(consolesUdpSocket->bind(QHostAddress("10.34.10.13"),3665, QUdpSocket::ShareAddress)))
    {
        return ;
    }
    
    if(consolesUdpSocket->state()!=QAbstractSocket::BoundState)
        return;
    
    QUdpSocket::SocketError  e;
    e = QUdpSocket::TemporaryError;
    
    if(!(consolesUdpSocket->joinMulticastGroup(QHostAddress("225.0.0.10"))))
    {
    
        ui->lineEdit->setText(consolesUdpSocket->errorString());
        //e=QUdpSocket::TemporaryError;
        return ;
    }
    consolesUdpSocket->setSocketOption(QAbstractSocket::MulticastLoopbackOption,false);
    
    connect(consolesUdpSocket, SIGNAL(readyRead()),
            this, SLOT(processConsolesPendingDatagrams()));
    
    delete consolesUdpSocket;
    

    @

    Thank's a lot



  • Anyone can help me??



  • Please I need help ... my brain is near to explosion!!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.