How can the QTcpSocket know the total size of data that is being sent ?

QTcpSocket knows about the size of the data received in one package. How about knowing the size of the total data that has to be received ?