+void ControlClient::send(const Command& command) {
+ try {
+ socket << command << flush;
+ } catch (const sockerr& e) {
+ signal_error().emit(e.serrno(), e.errstr());
+ finish();
+ }
+#ifdef DEBUG
+ cerr << __FILE__ << "(" << __LINE__ << ")"
+ << ": send() Enviado!" << endl;
+#endif // DEBUG
+}
+
+void ControlClient::on_receiver_finished(void) {
+ receiver = NULL;
+}
+
+void ControlClient::on_receiver_error(const Runnable::Error& code,
+ const string& desc) {
+ signal_error().emit(code, string("Receiver Error: ") + desc);
+}
+