diff options
Diffstat (limited to 'doc/networking.doc')
-rw-r--r-- | doc/networking.doc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/networking.doc b/doc/networking.doc index fe7b0e792..f99f75db1 100644 --- a/doc/networking.doc +++ b/doc/networking.doc @@ -218,7 +218,7 @@ ClientSocket constructor connects QSocket::readyRead() signal which is emitted w This slot is called every time we receive some data via socket. Our communication protocol is textual and line oriented, and socket communication is asynchronous (don't forget that, we don't know when readyRead() will be emitted, or will that be at the end of the line), so we have to check with QSocket::canReadLine() if the full line has been received. Because each input line presents one command in this protocol (list or get) we will process it and return generated answer through the socket back to the Client. Function processCommand() parses the input line and if it recognizes LIST or GET command, calls corresponding (InfoData*)info methods - list and get, otherwise creates appropriate error message. -QSocket is a subclass of TQIODevice, thus we can use QTextStream to read and write lines to it. +QSocket is a subclass of TQIODevice, thus we can use TQTextStream to read and write lines to it. @@ -244,7 +244,7 @@ Because user connects to the server by request (btnConnect), connectToServer() d \printuntil os << \printline } -This function sends a command to the server. Notice that is uses QTextStream to send data via socket. +This function sends a command to the server. Notice that is uses TQTextStream to send data via socket. \skipto ::socketReadyRead |