StreamSocket FTPClientSession::establishDataConnection(const std::string& command, const std::string& arg) { if (_passiveMode) return passiveDataConnection(command, arg); else return activeDataConnection(command, arg); }
StreamSocket FTPClientSession::establishDataConnection(const std::string& command, const std::string& arg) { StreamSocket ss; if (_passiveMode) ss = passiveDataConnection(command, arg); else ss = activeDataConnection(command, arg); ss.setReceiveTimeout(_timeout); return ss; }