将文件从C ++应用程序发送到我自己的主机
问题描述:
你好,
我没有C ++编程经验.现在,我正在尝试制作将文件从PC上传到主机的程序.在互联网上找不到任何示例.
谢谢您的帮助.
Hello,
I am not experienced on C++ programming. Now I am trying to make program which would upload files from my PC to my host. Cannot find any examples on internet.
Thank you for your help.
答
您不能只是在任何地方上传"某些东西.您的主机应该正在运行一些服务,该服务将响应您的客户端上载或下载内容的请求.它可以使用HTML或FTP协议执行此类操作.您还可以构建任何类型的自定义服务来支持文件传输,通常基于TCP.当您决定要在远程主机上拥有什么时,就可以在客户端上进行操作.—SA
You cannot just "upload" something anywhere. You host should be running some service which would respond to your client''s request to upload or download something. It can serve such operations using HTML or FTP protocol. You can also build any kind of custom service to support file transfer, usually based on TCP. When you decide what you want to have on you remote host, you can thing on your client part.—SA