lverlight是否可以在没有服务器的情况下进行对等通信或不提

lverlight是否可以在没有服务器的情况下进行对等通信或不提

本文介绍了Silverlight是否可以在没有服务器的情况下进行对等通信或不提供“本地服务器"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在讨论Silverlight(v4及更高版本)作为程序的可能平台,该程序需要两个实例直接进行通信.据我所知,对于客户端-服务器通信的SL套接字假设,这仍然不可能.

I'm discussing Silverlight (v4 onwards) as a possible platform for a program that will need two instances to communicate directly. As far as I can tell, this is still not possible with the SL sockets assumptions of client-server comms.

假设它是一款高度互动的两人游戏,您将对性能要求有个很好的了解.

Assume it is for a highly interactive two-player game and you will have a good idea of the performance requirements.

不需要在同一台服务器上扩展到成千上万的用户,因此大多数人关心的性能和扩展问题都没有关系.

It doesn't need to scale to thousands of users with the same server so the performance and scaling issues which concern most people are irrelevant.

此答案似乎很消极.

但是,有可能在需要通讯的人的台式机上安装 communication nub ,所以我正在考虑安装一个小的二进制本地服务器的可行性. /em>处理真正的对等通信,并由本地SL客户端与之通信.

However, there is the possibility of installing a communications nub on the desktop machines for people who need the comms so I'm musing over the feasibility of having a little binary local server that handles the true peer-peer comms and is talked to by the local SL client.

听起来有点像皮肤经纪人已经为视频做过,唯一的担忧是邮件的双重处理,但这不过是充当路由器.

That sounds a bit like Skinkers have done for video and the only concern would be the double-handling of messages but it's not much more than acting as a router.

更新

更多地考虑了迈克尔的答案,我想到我的特定情况可能是由SL的两个实例在一台机器内进行通信所满足的-进程间通信.

Thinking more about Michael's answer, it occurred to me that my specific scenario is probably something satisfied by two instances of SL communicating within the one machine - inter-process comms.

具有讽刺意味的是,这是可用于浏览器托管的SL ,但恐怕不能用于OOB.

Ironically, this is possible with browser-hosted SL but not, I fear, with OOB.

推荐答案

具有增强信任的Silverlight 4 可以做到这一点.如果您以提升的信任度运行,则可以在客户端系统上安装和运行服务.由于存在明显的滥用可能性,因此用户必须直接选择提高信任度.

Silverlight 4 with Elevated Trust has the potential to do this. If you run in elevated trust, you could possibly install and run a service on the client system. Because of the obvious potential for abuse, the user has to opt in directly for elevated trust.

这篇关于Silverlight是否可以在没有服务器的情况下进行对等通信或不提供“本地服务器"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 12:51