]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/src/controlclient.cpp
* Se agrega un Tanque al ejemplo, y ANDA!!!!
[z.facultad/75.42/plaqui.git] / Server / src / controlclient.cpp
index ffce9c0aa6f15a3f08a200a291160befa0ec8b18..3a3221bfdc71d673d1aadab980af13ac61198aa1 100644 (file)
@@ -25,6 +25,7 @@
 // $Id$
 //
 
 // $Id$
 //
 
+#include "plaqui/server/httpresponse.h"
 #include "plaqui/server/controlclient.h"
 #ifdef DEBUG
 #      include <iostream>
 #include "plaqui/server/controlclient.h"
 #ifdef DEBUG
 #      include <iostream>
@@ -45,13 +46,13 @@ ControlClient::~ControlClient(void) {
 ControlClient::ControlClient(string host, int port):
                Connection(sockbuf::sock_stream) {
 #ifdef DEBUG
 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);
                << " | 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) {
 }
 
 void ControlClient::real_run(void) {