// $Id$
//
+#include "plaqui/server/httpresponse.h"
#include "plaqui/server/controlclient.h"
#ifdef DEBUG
# include <iostream>
ControlClient::ControlClient(string host, int port):
Connection(sockbuf::sock_stream) {
#ifdef DEBUG
- cerr << __FILE__ << ": host" << host
+ cerr << __FILE__ << ": host = " << host
<< " | port = " << port << endl;
#endif // DEBUG
socket->connect(host.c_str(), port);
- if (!socket->is_open()) {
- throw ios::failure("Can't connect!");
- }
+ //if (!socket->is_open()) {
+ // throw ios::failure("Can't connect!");
+ //}
}
void ControlClient::real_run(void) {
switch (response.status_code) {
case HTTPMessage::OK:
ok_received();
+ break;
default:
error_received();
+ break;
}
}
}