Questions tagged [qhostaddress]

5 questions
1
vote
2 answers

Correct way to look up Hostnames in Qt with QHostInfo or QDnsLookUp

I am trying to use QHostInfo or QDnsLookUp to look up a hostname and get a list of QHostAddress. I would prefer QHostInfo (the interface is simpler) but I tried also QDnsLookUp. In the first case, I use QHostInfo::lookupHost() static function, and…
n3mo
  • 663
  • 8
  • 23
0
votes
0 answers

QT connectToHost() wrong host state

I am using QTcpSocket to connect to given host: QHostAddress oAddr( u32Addr); QTcpSocket* poSocket = new QTcpSocket(this); connect(poSocket, SIGNAL(connected()), this, SLOT(readCheckConnection())); poSocket->connectToHost( oAddr, 80); I am not…
hus
  • 117
  • 1
  • 7
0
votes
1 answer

Qt - QUdpSocket bind failed constantly

I have these 2 lines of code. I need a socket that just receives data The first method is working, and I receive date (from the ip/port in the second method) The second method is always returning false. I don't understand the difference and can't…
LIOR
  • 149
  • 1
  • 12
0
votes
0 answers

QT QTcpServer listen

i have a question about QT QTcpServer server->listen(QHostAddress, qint16). I have problems with the address. I tried with QHostAddress("127.0.0.1"), and that worked. I tried with QHostAddress::Any, and that failed (error 10, not supported). I tried…
Siegfried
  • 31
  • 5
0
votes
1 answer

How can I pin-point the location of the call in my code that triggered QObject::connect: Cannot queue arguments of type in Qt5?

In my Qt5 application, I am receiving a log message at run time from Qt itself that looks like this: QObject::connect: Cannot queue arguments of type 'QHostAddress' I know how to fix the cause of this message using…
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95