Qt World Summit: Register Today!

The timeout is too long when using QTcpSocket to connect

  • Hi Guys:
    I am using the Qt on the Beagleboneblack(BBB), the system is linux, and I have a program which use QTcpsocket library ran on BBB. I found if I add a non-existed gateway in the /etc/network/interface, QTcpsocket->waitForConnected(1) will keep a long time on waiting the response(Note. whatever the parameter I gave for this function, this function also hold on a long time). Can anyone help me solve this problem?? Thanks in advance.