X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/e90831f68ec3af87bddba19b44be388eb2b3752e..5e9414c4a70c6f2a33f399dd1f92a3adf3fe73ea:/Server/tests/receiver_test.cpp?ds=sidebyside diff --git a/Server/tests/receiver_test.cpp b/Server/tests/receiver_test.cpp index 6bb5f57..f1e86b9 100644 --- a/Server/tests/receiver_test.cpp +++ b/Server/tests/receiver_test.cpp @@ -26,8 +26,8 @@ // #include "plaqui/server/receiver.h" +#include "plaqui/server/string.h" #include -#include #include using namespace std; @@ -51,8 +51,7 @@ int main(int argc, char* argv[]) { 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) {