I can not receive simple int values over a socket
-
Hi,
I use a tcp socket with a signal slot mechanism to send and receive messages from a java socket server.
My problem is the function readReady will just called if I send a string. But I want to send and receive an int.
Is there an way to do it? Or can i just receive strings?My code:
connect(socket,SIGNAL(readyRead()),this,SLOT(readReady())); void TcpSocketCon::readReady() { qDebug()<<"Read from Socket"; qDebug()<<socket->readAll(); }