Skip to main content

Microsoft Silverlight

Answered Question Direct connection between 2 SL clientsRSS Feed

(0)

Tiradentes
Tiradentes

Member

Member

2 points

6 Posts

Direct connection between 2 SL clients

Hi,

Is threre a way to connect a SL client from another SL client without routing the whole communication over a server?

I guess not, for security reasons, but maybe I missed something.

Thanks.

HarshBardhan
HarshBar...

Star

Star

9908 points

1,719 Posts

Re: Direct connection between 2 SL clients

Hi,

 If both are hosted in Same Aspx or Html Page you can communicate them byu exposing some Scriptable members.

Mark as answer if this post answered your question.

Harsh Bardhan

Tiradentes
Tiradentes

Member

Member

2 points

6 Posts

Re: Direct connection between 2 SL clients

Hi Harsh,

Wow, that was fast :-)

But I meant a connection between clients running on different machines.

Ueli

Bill Reiss
Bill Reiss

Contributor

Contributor

4836 points

917 Posts

Silverlight MVP
Answered Question

Re: Direct connection between 2 SL clients

If they're in the same page, you could build a bridge in Javascript where you would have some method that gets called from on of the Silverlight apps, and then calls into the other one.

If you're talking about a peer-to-peer between two browser instances, there's some discussion about it here:

http://silverlight.net/forums/t/19631.aspx

and here:

http://silverlight.net/forums/t/33072.aspx


Bill Reiss, Coauthor of Hello! Silverlight 3
My blog (rss feed)

HarshBardhan
HarshBar...

Star

Star

9908 points

1,719 Posts

Re: Direct connection between 2 SL clients

Hi,

 In that case either you have to use Services or sockets for communication.

Mark as answer if this post answered your question.

Harsh Bardhan

Tiradentes
Tiradentes

Member

Member

2 points

6 Posts

Re: Direct connection between 2 SL clients

Hi Bill,

Yes, that's exactly what I was looking for... Unfortunately the term peer-to-peer didn't cross my mind, so my forum search was unlucky. Thanks.

Ueli

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities