ftp文件共享

发布于 2024-08-07 05:47:42 字数 80 浏览 1 评论 0原文

我想在 Linux 中编写一个客户端服务器程序,其工作方式类似于 ftp,但我无法从服务器获取或放入文件。 请提出任何想法来做到这一点......

I want to write a client server program in linux which works like ftp, but I am unable to get or put the files from and to the server.
Please suggest any ideas to do it...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

猫性小仙女 2024-08-14 05:47:42

嗯...您没有说您正在使用哪种语言,也没有描述您遇到的问题。你甚至没有解释你现在有什么,所以可能很难有效地帮助你。

不过,我可以向您指出一些对您有帮助的资源:

http://www.ietf.org/rfc/rfc959.txt" ietf.org/rfc/rfc959.txt(FTP 规范)

http://src.chromium.org/viewvc/chrome/trunk/src/net/ftp/(Google Chrome 在现代 C++ 中的 FTP 实现。最有趣的文件可能是 ftp_network_transaction.cc)

http://code.google.com/p/pyftpdlib/ (类似于服务器的 FTP 代码Python)

Hmm... you didn't say which language you are using, and you didn't describe the problems you're getting. You didn't even explain what you have now, so it may be difficult to help you effectively.

However, I can point you to some resources which should be helpful for you:

http://www.ietf.org/rfc/rfc959.txt (the FTP spec)

http://src.chromium.org/viewvc/chrome/trunk/src/net/ftp/ (Google Chrome's FTP implementation in modern C++. The most interesting file is probably ftp_network_transaction.cc)

http://code.google.com/p/pyftpdlib/ (server-like FTP code in Python)

秋心╮凉 2024-08-14 05:47:42

实际上,我正在使用 C 和 linux 的组合。每当我使用 get 命令传输文件时,文件都会被传输,但在文件内容之后会附加大量垃圾。
另外,我发现一个问题,如果用户提供不可用的文件名,则显示要传输的服务器中不存在文件。

Actually I am using the combination of C and linux.Whenever I transfer a file using the get command the file is transferred but after the contents of the file lot of garbage is appended.
Also I am finding a problem in showing that a file is not present in the server to be transferred if the user gives a filename which is not available.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文