将文件从C ++应用程序发送到我自己的主机 [英] File sending form from C++ application to my own host

查看:100
本文介绍了将文件从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


这篇关于将文件从C ++应用程序发送到我自己的主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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