Added recv function that will read and return line by line from socket