如何让我的本地应用程序充当服务器 [英] how do I make my local app act as a server

查看:112
本文介绍了如何让我的本地应用程序充当服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!



我几乎一直在开发本地(或桌面)应用程序。通过C ++在Visual Studio中使用框架QT或MFC 。



现在我的客户希望我使用QT开发的应用程序能够识别网络。但该应用程序最初只能在一台PC上本地运行。



需要是这样的:应用程序放在一台PC上作为服务器(链接到互联网),另一台PC可以通过互联网连接到它并发送一些请求应用程序始终在服务器上运行。如果可能将一些数据或文档发送回请求者。



任何提示?或者链接或教程将不胜感激!

解决方案

您只需要将您的应用程序修改(或重新设计)为服务器(在客户端/服务器架构中)。 MSDN提供您所需的一切 [ ^ ]

Hi!

I just developed "local"(or "desktop") apps for almostly all the time.by C++ with framework QT or MFC in visual studio.

Now My client want the app which I developed with QT to be web aware.but the app is originally designed to run locally on just one pc.

The need is sth like : the app put on one pc to be a server(link to the internet),the other pc can connect to it by internet and send some request to the app that's always running on the server.if possible sent some data or documents back to the requester.

any hint ? or link or tutorial will be appreciated!

解决方案

You have just to modify (or redesign) your application as server (in a client/server architecture). MSDN provides all you need[^].


这篇关于如何让我的本地应用程序充当服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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