fix: reading of buffered sockets.

*BEWARE* sock API changed for a more functional one.