controller.h 505 B

1234567891011121314151617
  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, unsigned short &total_nodes,
  9. unsigned short &GB_mem_per_node);
  10. int controller_main(const Worklist &worklist, unsigned short bindport,
  11. void (*boundcb)(const char *boundaddr, unsigned short boundport));
  12. #endif