Refactor the vPoller C client