如何编写C中的FTP客户端? [英] How to program an FTP client in C?

查看:158
本文介绍了如何编写C中的FTP客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要编程code谁想要一个文件传输到服务器,该协议RCFTP的客户端。操作应该是:客户端发送请求来保存文件的一部分,如果你收到了这片没有错误,服务器会响应。如果是这样,客户端将仍然发送的文件碎片,直到您已经提交了所有没有错误。如果一个传输错误,客户端必须发送回片文件的失败。

会知道一点帮助上手?


解决方案

  1. 调查是否可以使用任何pre-现有code,如图书馆。

  2. 插座阅读起来并尝试实施的 FTP协议

  3. 给我回来时,你有具体的问题,并可以显示一些code。 :)

I have to program the code for a client who wants to transfer a file to a server, the protocol RCFTP. The operation should be: the client sends a request to save a portion of the file, the server will respond if you have received this piece without errors. If so, the client will still send pieces of the file until you have submitted all without errors. If a transmission error, the client must send back the piece of file failed.

Would know a little help to get started?

解决方案

  1. Investigate if you can use any pre-existing code, such as a library.
  2. Read up on sockets and try to implement the FTP protocol.
  3. Get back here when you have concrete questions and can show some code. :)

这篇关于如何编写C中的FTP客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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