worker.hpp 289 B

1234567891011121314151617181920
  1. #ifndef WORKER_HPP
  2. #define WORKER_HPP
  3. #include "client.hpp"
  4. #include "task.hpp"
  5. class Worker:public Client{
  6. public:
  7. Worker(string ip,int port);
  8. Task get_task();
  9. void send_task(Task& task);
  10. };
  11. inline
  12. Worker::Worker(string ip,int port):Client(ip,port){
  13. send_code('W');
  14. }
  15. #endif