Hi All,
I have a problem with the readLine()-function, it stops reading when it encounters the ‘.’ character. My program connects to a server, and then gives a command to the server.
( I have verified that the command is sent to the server, since I have another terminal window open and connected to the server with the telnet IPadress Port command. This terminal displays the "answer" from the terminal)
The server answers with a string like this 1011.354 1011.312. 1011.100 I have a Qstring variable mystring and a QtcpSocket variable tcpSocket:
mystring=tcpSocket->readLine();
qDebug <<mystring; gives output: 1011
When I add the if (tcpSocket->canReadLine()) before the readLine() the readLine() is never executed.
Any help is deeply appreciated!
Regards
gQt
Bookmarks