Refactor some code of Input{CSV,UDPSocket}::get_next_request() into InputMedium::get_next_request(). The medium-specific code must now be implemented in fill_current_request().