Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Silverlight 3 OPEN SOCKETS?

Can Silverlight 3 OPEN SOCKETS?


If yes. What do I need
  • MSDN if there is any help on this.
  • Open Source Libs/wrappers for encoding/decoding.
  • Tutorials and blog articles on How to do it.
    If no I need where did you get the info from (link to MSDN or other official SL resource)
like image 698
Rella Avatar asked Nov 03 '09 21:11

Rella


3 Answers

Yes, it can.

  1. MSDN:
    http://msdn.microsoft.com/en-us/library/cc296248(VS.95).aspx
    http://msdn.microsoft.com/en-us/library/cc645032(VS.95).aspx

  2. One of the light libs you might find useful:
    http://socketslight.codeplex.com

  3. A couple of how-to-s:
    http://weblogs.asp.net/dwahlin/archive/2008/04/13/pushing-data-to-a-silverlight-client-with-sockets-part-ii.aspx
    http://www.silverlightshow.net/items/SocketsLight-Silverlight-Sockets-Framework.aspx

like image 62
PL. Avatar answered Oct 04 '22 03:10

PL.


Yes, you can, but only within a certain range of ports (4502-4534) and only if you can also host an appropriate cross-domain policy file on port 943 on the same server. You've already got the MSDN link - here's an example application (for SL2, but should be similar in 3):

[Pushing Data to a Silverlight Client with Sockets Part 1][1]

Search Dan's blog for "socket" and you can find part 2 and how to create the policy server - SO won't let me post more than 1 link :(

like image 26
Doug Rohrer Avatar answered Oct 04 '22 03:10

Doug Rohrer


Here's the MSDN article on working with sockets:

Working with Sockets

like image 30
jfawcett Avatar answered Oct 04 '22 04:10

jfawcett