diff --git a/services/comm.h b/services/comm.h index 42d2b939..da757627 100644 --- a/services/comm.h +++ b/services/comm.h @@ -210,7 +210,7 @@ class Msg { virtual void fill_from_channel(MsgChannel *c); virtual void send_to_channel(MsgChannel *c) const; -private: +protected: Value value_; }; @@ -879,6 +879,7 @@ class MonGetCSMsg : public GetCSMsg MonGetCSMsg() : GetCSMsg() { // overwrite + value_ = MON_GET_CS; clientid = job_id = 0; } @@ -886,7 +887,9 @@ class MonGetCSMsg : public GetCSMsg : GetCSMsg(Environments(), m->filename, m->lang, 1, m->target, 0, std::string(), false, m->client_count, m->niceness) , job_id(jobid) , clientid(hostid) - {} + { + value_ = MON_GET_CS; + } virtual void fill_from_channel(MsgChannel *c); virtual void send_to_channel(MsgChannel *c) const; @@ -923,11 +926,15 @@ class MonJobDoneMsg : public JobDoneMsg public: MonJobDoneMsg() : JobDoneMsg() - {} + { + value_ = MON_JOB_DONE; + } MonJobDoneMsg(const JobDoneMsg &o) : JobDoneMsg(o) - {} + { + value_ = MON_JOB_DONE; + } }; class MonLocalJobBeginMsg : public Msg