How to connect to a FTP server with Crow c++ (not localhost)

145 Views Asked by At

I have just implemented crow in my C++ application. The application now returns a result to a local host. Instead of uploading the result to a local host I want to connect to a FTP server and I can see the server through FileZilla. I have the host, username, password and port. How can i use crow to send my result there?

    std::cout << "1: OPTION 1" << std::endl;
    std::cout << "2: OPTION 2" << std::endl;
    std::cout << "3: OPTION 3" << std::endl;

    while (true) {
        int option;
        std::cout << "Enter option 1-3: ";
        std::cin >> option;

        //define your endpoint at the root directory
        CROW_ROUTE(app, "/")([&]() {

            if (option == 1) return "Option 1";

            if (option == 2) return "Option 2";
        
            if (option == 3) return "Option 3";

        });

        app.port(18080).multithreaded().run();
    };

Can not find anyone trying to connect to a cloud server

0

There are 0 best solutions below