]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/tests/receiver_test.cpp
Se pone un poco mas de orden. Desaparece la ControlClient::signal_connected().
[z.facultad/75.42/plaqui.git] / Server / tests / receiver_test.cpp
index 6bb5f57f1b20d11290c7240893b7f261a78c4e39..f1e86b958aa757da5cf80e2fcd425652aaa9ca39 100644 (file)
@@ -26,8 +26,8 @@
 //
 
 #include "plaqui/server/receiver.h"
 //
 
 #include "plaqui/server/receiver.h"
+#include "plaqui/server/string.h"
 #include <iostream>
 #include <iostream>
-#include <sstream>
 #include <exception>
 
 using namespace std;
 #include <exception>
 
 using namespace std;
@@ -51,8 +51,7 @@ int main(int argc, char* argv[]) {
        Connection::Port port = 7528;
        if (argc > 1) {
                // Obtengo puerto.
        Connection::Port port = 7528;
        if (argc > 1) {
                // Obtengo puerto.
-               stringstream str(argv[1]);
-               str >> port;
+               to(argv[1], port);
        }
        string host = "localhost";
        if (argc > 2) {
        }
        string host = "localhost";
        if (argc > 2) {