Use bufio to read from the socket