Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. JoinMulticastGroup Fail with Unknown Error Linux
QtWS25 Last Chance

JoinMulticastGroup Fail with Unknown Error Linux

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 3.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ricox
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • R Offline
      R Offline
      ricox
      wrote on last edited by
      #2

      Anyone can help me??

      1 Reply Last reply
      0
      • R Offline
        R Offline
        ricox
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved