- enum message_type { INFO, CREDIT, LOAD, CLOSE };
+ enum message_type { INFO, CREDIT, LOAD, CTRL_CLOSE, DATA_CLOSE };
message(message_type t, double a): type(t), amount(a) { }
message_type get_type() const { return type; }
double get_amount() const { return amount; }
message(message_type t, double a): type(t), amount(a) { }
message_type get_type() const { return type; }
double get_amount() const { return amount; }
const char* get_ctrl_mbox() const { return ctrl_mbox.c_str(); }
const char* get_data_mbox() const { return data_mbox.c_str(); }
const char* get_ctrl_mbox() const { return ctrl_mbox.c_str(); }
const char* get_data_mbox() const { return data_mbox.c_str(); }