[Qt-interest] Alternative for bind() in TCP sockets
Anisha Kaul
anisha.kaul at hitechroboticsystemz.com
Thu Jan 27 11:19:55 CET 2011
Thanks to all for helping here,
Previously I did not know what I was doing, but now I think I know it, I
have corrected the connect calls too.
Thiago, you asked:
> Is this function connected to the signal readyRead()?
Yes, see below code
objTcpSocket = tcpServer->nextPendingConnection ();
connect (objTcpSocket, SIGNAL(readyRead()), this, SLOT(addMessageToIncomingQueue()));
The slot 'addMessageToIncomingQueue' is also getting called when I run a client, but the read() inside that
slot returns -1
My question is, under which cases the read returns -1? The isReadable() also returns 0,
Thanks,
Anisha
-------------------------------------
Hi-Tech Gears Limited, Gurgaon, India
More information about the Qt-interest-old
mailing list