Did you not try to debug your code before posting here?
Eg. does sendMessage transmit a valid message?
Which lines of receiveMessage are actually executed?
Did you not try to debug your code before posting here?
Eg. does sendMessage transmit a valid message?
Which lines of receiveMessage are actually executed?
i try to debug program and i get some error on "if (socket->bytesAvailable() < blockSize) return; ", i delete it from my source code then sendMessage and receiveMessage run on both server and client, but messenge data not receive, i have just known a little about it, but not mastered yet!
help me ,i really need it :-(( thank in advance .
UP ... help me :-(( i verry need it :-S
Check what blockSize contains after you stream data to it from the data stream.
By the way, I think the code for the chat needs to be reviewed. Creating a data stream in a slot connected to readyRead() is really a bad idea.
Bookmarks