Silverlight / WPF - Sending data to a Silverlight application from outside

Asked By Niron Kag
07-Sep-10 08:05 AM

Hi,

I want to develop a multiplayer game.

The game will provide communication between Silverlight application (internet application) and android cellular (client application – like Windows Forms Application).

So actually a user can be a Silverlight application (internet application) or a cellular client application.

The users will send each other XML in order to communicate.

Is it possible to send a data (XML) to a Silverlight application from outside (through IP and Port or any other way)?

I know the Silverlight application can ask the server any X seconds – "Do you have something for me?" – But I do not want to use this approach, because it adds burden on the communication.

Any help will be appreciated.

  Peter Bromberg replied to Niron Kag
07-Sep-10 08:25 AM
I think your best bet for something like this is to have your applications use the Silverlight polling duplex feature, which is quite efficient. If you do not use a central service through which to send and receive messages, it will be very hard to do it otherwise as the IP Addresess may change.
  Niron Kag replied to Peter Bromberg
07-Sep-10 10:23 AM


Hi Peter,

First, thanks a lot for your quick and helpful answer!

I thought to use a central service which will handle the communication between the users
 ((1) Silverlight to Android and (2) Android to Android).

The service will be implemented using WCF.

I read a little about Silverlight polling duplex feature, and I understood that it might have problems (like speed, latency) when used by a medium number of concurrent users.

I read pushing data (XML) to the Silverlight user can be done also using web socket.

Do you think Silverlight polling duplex feature is better in my case? Can you explain why?

Thanks in advance.

Create New Account
help
Silverlight / WPF Architecture MVP Summit Presentation Wanted to make the download of the presentation available for the at the summit as well as the general public. It includes a bunch of sample WPF, WCF, Silverlight code for architecting a Silverlight application that is also made available offline as a WPF application. For those of you that attended the presentation, my apologies for having to cut Keys or off the coast of Daytona Beach. Microsoft MVP Create New Account Article Discussion: Silverlight / WPF Architecture MVP Summit Presentation Robbe Morris posted at Monday, March 02, 2009 1:29
File uplaod in Silverlight using WCF service Silverlight / WPF Hi All, How do I upload large file in silverlight application using WCF service.?? Thanks, Murali AspNetCompatibilityRequirementsMode (1) Silverlight (1) FileUpload (1) FileStream (1) FileMode (1) Class (1) WPF (1) WCF (1) Hello Murali, using System.Collections.Generic; using System.Linq; using System.Runtime
book? can any one suggest me some books for WCF WPF Silverlight. for free download HI refer these links For wcf http: / / www.wcftutorial.net / For WPF http: / / www.wpftutorial.net / For silverlight http: / / www.silverlight.net / learn / tutorials / silverlight-4 / http: / / www.learn-silverlight-tutorial.com / See the following links http: / / www.free-ebooks
books iam starting working on some upgraded technologies like silverlight, wcf, wpf. . . . . . can any one suggest me books for free download on above modules i want books
silverlight and wpf difference if one person has gain master in silverlight than wiil this help him in learning wpf Hi Malik, WPF has a more advanced and mature XAML support than Silverlight. Silverlight used to be called (WPF / E) and is a subset of the WPF XAML design. Therefore, it doesn't support