如何连接两个服务器一个是UWP,另一个是桌面应用程序 [英] How to connect two servers one is UWP and other is a desktop app

查看:71
本文介绍了如何连接两个服务器一个是UWP,另一个是桌面应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我有两个应用需要使用流式TCP向对方发送一些信息。其中一个是UWP,另一个是桌面应用程序。所以我知道UWP< g class =" gr_ gr_211 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim
ContextualSpelling multiReplace"数据-GR-ID =" 211" ID = QUOT; 211" I标记< / g取代;将需要使用< g class =" gr_ gr_225 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling"数据-GR-ID =" 225" id =" 225"> streamsocketlistner< / g> 到
接收数据和< g class =" gr_ gr_367 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace"数据-GR-ID =" 367" ID = QUOT; 367"> streamsocket< / g取代;发送信息。我应该在桌面
应用程序中做些什么我对Winsock感到困惑。

I have a two application that needs to send some information to each other using streaming TCP. One of them is UWP and the other is a desktop application. So I know for the UWP <g class="gr_ gr_211 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" data-gr-id="211" id="211">i</g> will need to use <g class="gr_ gr_225 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" data-gr-id="225" id="225">streamsocketlistner</g> to receive data and <g class="gr_ gr_367 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="367" id="367">streamsocket</g> to send information. What shall I do in the desktop application I am totally confused about the Winsock.

请注意我需要收到< g class =" gr_ gr_692 gr -alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del"数据-GR-ID =" 692" id =" 692"> realtime< / g> 图片从桌面到
UWP

Please be aware that I will need to receive <g class="gr_ gr_692 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" data-gr-id="692" id="692">realtime</g> images from the desktop to the UWP

问候

Elhassan

推荐答案

我不是专家,所以其他人可以提供更好的帮助,但我认为你应该使用WCF。
I am not an expert so someone else can provide better help but I think you should use WCF.


这篇关于如何连接两个服务器一个是UWP,另一个是桌面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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