[Qt-interest] QTcpSocket receives a string
Stefanos Antaris
santaris at csd.auth.gr
Mon Apr 6 16:20:45 CEST 2009
Hello.Can anyone tell me how could i receive a string using a tcp
socket?The server is not a qt application.It just send me a string like
this."0039,0023,0049,0594".And how could i break this one into parts
like this.
QString a1="0039"
QString a2="0023"
QString a3="0049"
I know how to connect using this code
QTcpSocket* tcpSocket;
tcpSocket=new QTcpSocket;
tcpSocket->connectToHost("192.168.1.1",6779);
[\code]
I just don't know which function should i use in order to receive a
stream.Moreover i tried to used the C++ function atoi and it just don't
compile it.
Thanks in advance.
More information about the Qt-interest-old
mailing list