Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Clarification....is it good or not ?
billy.N last edited by
i am realizing a little server for my tchat application
i use the tcpServer and tcpSocket...to represent clients
when the socket send a message to the server i would to know if i can use this code to know if the server receive all informations sent by clients before treating them :
QByteArray data = socket.read(100);
thanks for anwsers !!!
use the bytesAvailable() method before actually consuming the data
VRonin last edited by
Check page 363 of C++ GUI Programming with Qt 4 for an explanation on how to do this
billy.N last edited by billy.N
There's also the Chat Example that may be of use.