- Command(const std::string &c): cmd(c), sent(false) { }
- void set_sent(bool s) { sent=s; }
- const std::string &get_command() const { return cmd; }
- bool get_sent() const { return sent; }
-private:
- std::string cmd;
- bool sent;
+ Command(Cmd, const unsigned char *, unsigned);
+
+ void send(int);
+ bool get_sent() const { return sent; }
+ Cmd get_command() const { return cmd; }
+
+ friend std::ostream &operator<<(std::ostream &, const Command &);