Read data from socket into buffer

This is just to check if everything works for now.