开发者

How to self host a UDP Policy server for Silverlight?

开发者 https://www.devze.com 2023-02-22 12:50 出处:网络
I am trying to see how viable UDP is for development of a w开发者_开发知识库eb based game. Andrea Boschin has a good example of a UDP solution. This solution works fine when run from the VS2010 debu

I am trying to see how viable UDP is for development of a w开发者_开发知识库eb based game.

Andrea Boschin has a good example of a UDP solution. This solution works fine when run from the VS2010 debugged. This solution comprises of three projects

  1. A console application which hosts the MulticastPolicyServer
  2. A Silverlight client which talks to a UdpAnySourceMulticastClient
  3. A web project to host the Silverlight client

My question: What do I need to do to host this on the internet? Do I need to deploy the policy server to IIS? Construct a windows service ? or is this a intranet only solution?


IIS is not meant for this purpose. You have to write a windows service to host your UDP program. And of course there restriction exposing UDP over the Internet. Just keep in mind that UDP is not reliable protocol and it can miss a packet. So your logic should be capable of handling this.


use an RPC protocol over TCP to setup a subscription/authentication service (it may be useful to read up on XMPP) - do a one time authentication (your best bet is probably X509 [SSL, HTTPS] via WCF) which would work like a passive FTP...connect to me (server) then I'll give you a new port to connect to where I'll (as in me, the server) will be broadcasting media - then use UDP as your transport mechanism for your video/audio assuming that's what you're trying to do

0

精彩评论

暂无评论...
验证码 换一张
取 消