Skip to main content

Microsoft Silverlight

Tim HeuerPresented by:
Tim Heuer

LocalConnection API

0 0

Leave a Comment Comments (18) RSS Feed


Steve...

Member

Member

18 Points

#1 March 19, 2009 3:24 AM

WOW,  this is crazy powerful.

I would like to see you set up something that works between 2 domains,  could you use it to have a Co-op game?  Like 2 players in a tank battle?


Bigsby

Member

Member

262 Points

#2 March 20, 2009 8:57 PM

I really don't see the use of HTML in the middle of Silverlight applications but it sure is a nice work.


trey....

Member

Member

5 Points

#3 March 20, 2009 11:31 PM

Another great cast, Tim.

Like, Steve above, I am curious about the cross-domain messaging. I'm sure reading up on the sender object will help, but it would be cool to see a real world scenario exemplified.


daviwil

Member

Member

3 Points

#4 March 21, 2009 9:10 PM

@Steve: I don't think that LocalConnection is meant for sending information to someone on a different machine.  That's why it's called "LocalConnection".  The point about the cross-domain messaging is that you can set up your application to only receive messages from Silverlight apps loaded from particular domains but running within the user's local machine.  This is just a security consideration, not an ability to do communication over the internet.  There are other tools for that, such as WCF services and the sockets library.


dvand...

Member

Member

12 Points

#5 April 02, 2009 5:37 PM

Thanks for the video.  Please do more of these!

LocalConnection is interesting, and a very clean API design.  If only other forms of network communication could be made so easy, being able to pass string messages and have events fire when they arrive!  Sockets are so low-level and difficult to get right.


justi...

Member

Member

1 Points

#6 April 18, 2009 2:16 PM

Tim,

 for local connections between different domains, does Silverlight require any security policies in place on either server? like Flash uses a crossdomain policy file.

Thanks,

justin


heuertk

Member

Participant

1394 Points

#7 April 19, 2009 4:12 AM

Justin -- check the SDK docs for how to communicate between XAPs delivered from diff domains.  We do have a cross domain policy file concept for network connectivity, but this is different.


eric_...

Member

Member

2 Points

#8 May 05, 2009 11:45 PM

Any chance this works across multiple browsers? I’d really like to support multiple monitor scenarios. Would LocalConnection allow me to launch a separate browser containing a second SL app which could then be moved to a second monitor and communicate back to the original app?


heuertk

Member

Participant

1394 Points

#9 May 06, 2009 12:16 AM

eric - yes it will work across multiple browsers on the same physical machine.


brauliod

Member

Participant

1169 Points

#10 May 17, 2009 8:29 PM

Mmm... quite interesting, so let's say my company has three corporate applications developed in SL, and a given user has the applications opened on the same computer but on three different browsers (no matter if Firefox, IE...), I can communicate those applications by using messaging... It would be quite interesting to see a sample like that.

Another question, for the pipe name, could we use a GUID ? (well I guess we can convert the GUID to an string and that's it).

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities