Read all data from socket