3#include <fineftp/fineftp_version.h>
4#include <fineftp/server.h>
29 std::string
describe()
const override {
return ip +
":" + std::to_string(
port); };
40 int threadPoolSize = 4);
47 std::unique_ptr<fineftp::FtpServer>
pFtpServer =
nullptr;
AsioInterface(Args &&... args)
Definition AsioInterface.hpp:52
std::string describe() const override
Return a human-readable description of this interface.
Definition SocketInterface.hpp:29
int port
Scanner command port.
Definition SocketInterface.hpp:44
void startFtpServer(const std::string &address, int port, const std::string &mountPoint, int threadPoolSize=4)
Start a local FTP server for receiving data from the scanner.
SocketInterface(const std::string &ip="192.168.100.100", int port=9004)
Open a TCP socket connection to the scanner.
std::string ip
Scanner IP address.
Definition SocketInterface.hpp:43
std::unique_ptr< fineftp::FtpServer > pFtpServer
FTP server instance (heap-allocated because FtpServer is non-copyable).
Definition SocketInterface.hpp:47
~SocketInterface() override
Definition AsioInterface.hpp:5