Receives a data buffer of the max size data.length
preallocated buffer
set the non blocking mode
if sz != the this sz is used as max size
number of actually received bytes or -1
Receives a data buffer of the max size data.length