X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/dd5a5045d5549015b6500726098cb43d1e1c614c..9523acd2d7be7b8bbbf6d8c786c68c91f9fcc700:/Server/tests/server_test.cpp?ds=sidebyside diff --git a/Server/tests/server_test.cpp b/Server/tests/server_test.cpp index 3233413..bdb6190 100644 --- a/Server/tests/server_test.cpp +++ b/Server/tests/server_test.cpp @@ -27,9 +27,9 @@ #include "plaqui/server/connection.h" #include "plaqui/server/server.h" +#include "plaqui/server/string.h" #include #include -#include #include using namespace std; @@ -53,8 +53,7 @@ int main(int argc, char* argv[]) { // Si tiene 2 parĂ¡metros. if (argc > 2) { // Obtengo puerto. - stringstream ss(argv[1]); - ss >> port; + to(argv[2], port); } }