针对嵌入式Linux的简单C / C ++ FTP和SFTP客户端库推荐 [英] Good simple C/C++ FTP and SFTP client library recommendation for embedded Linux

查看:162
本文介绍了针对嵌入式Linux的简单C / C ++ FTP和SFTP客户端库推荐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以推荐基于Linux的嵌入式系统的FTP / SFTP客户端C / C ++库吗?我知道 Curl 库,但我需要尽可能简单的方法来从FTP / SFTP服务器下载文件。有没有建议要寻找?是的,SFTP支持至关重要。实际上,我甚至可以牺牲多线程,因为我一次只需要一个流。我希望它能够通过内存缓冲区工作,但这应该不是问题。



预先感谢您。



UPDATE:

在花费了一些时间与libcurl后,我决定不采用这种方式来支持直接使用libssh2进行SFTP,并重用来自不同项目的专有FTP库。 libcurl似乎与curl命令行工具方法太相关。例如,尝试在开始下载操作之前获取远程文件大小 - 这绝对没有计划。



但其实另一个命题是受欢迎的,特别是我看到没有真正简单的良好公共C或C ++ FTP客户端库。一切都是非常古老的,不被支持或者是新鲜和潮湿的。 .org /rel =nofollow noreferrer> libssh2 对于SFTP来说是一个很好的库 - 它也恰好是(lib)curl用于SFTP的库。


Could anyone recommend FTP / SFTP client C/C++ library for Linux-based embedded system? I know about Curl library but I need something as simple as possible just to download files from FTP / SFTP servers. Is there any recommendation to look for? Yes, SFTP support is critical. Actually I can even sacrifice multi-threading because I need only one stream at a time. And I'd like it to be able to work through memory buffers but this should be not a problem.

Thank you in advance.

UPDATE:
After spent some time with libcurl I decided not to go this way in favor of direct usage of libssh2 for SFTP and reuse proprietary FTP library from different project. libcurl seems too linked to curl command line tool approach. For example try to get remote file size before starting download operation - it was definitely not planned.

But actually another propositions are welcome especially I see no really simple good public C or C++ FTP client library at all. Everything is either very old and not supported or fresh and wet.

解决方案

libssh2 is a great lib for SFTP - and it also happens to be the lib that (lib)curl uses for SFTP.

这篇关于针对嵌入式Linux的简单C / C ++ FTP和SFTP客户端库推荐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆