hi all,

i am writing a client server application and my server uses a thread per client,
writing to the socket as follows

Qt Code:
  1. socket.write(block) // block is of type QByteArray
  2. socket.waitForBytesWritten(-1)
To copy to clipboard, switch view to plain text mode 

does the command in the second line enforce all data t be actually written to the socket, which was in the block variable?
the docu says just "it waits until a payload of data has been written".

greetings

smalls