controller.h 439 B

12345678910111213141516
  1. #ifndef __CONTROLLER_H__
  2. #define __CONTROLLER_H__
  3. #include <vector>
  4. #include <utility>
  5. typedef std::pair<const char *, unsigned int> Workentry;
  6. typedef std::vector<Workentry> Worklist;
  7. int controller_parse_args(int argc, char **argv, unsigned short &bindport,
  8. Worklist &worklist);
  9. int controller_main(const Worklist &worklist, unsigned short bindport,
  10. void (*boundcb)(const char *boundaddr, unsigned short boundport));
  11. #endif