Man who broke into homes to view Internet pornography gets a 34-month prison term