Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Silverlight P2P RSS

3 replies

Last post Nov 26, 2007 03:06 AM by swildermuth

(0)
  • mrbuckers

    mrbuckers

    Member

    2 Points

    2 Posts

    Silverlight P2P

    Nov 23, 2007 06:42 AM | LINK

    Hello everyone,

     I am new to silverlight development and I want to know if silverlight instances can communicate between each other - I want to build a simple game with silverlight. Would it be possible to setup a connection between two silverlight instances with the help of the hosting website and than to actually "play" the game without the need to send interaction data (player 1 moved right, player 1 picked item, etc.) to the server and than to the second silverlight instance?

     Thanks in advance,

    Dave

    silverlight Games p2p networking

  • swildermuth

    swildermuth

    Star

    8438 Points

    1547 Posts

    Re: Silverlight P2P

    Nov 23, 2007 10:51 PM | LINK

    Silverlight instance can communicate with each other in the same web page...(each instance would live in the DOM and you could get each host and call into individual elements with JScript pretty effectively).

    Shawn Wildermuth
    MVP, Speaker and Author

    Web Workshop (HTML5/CSS/MVC4)
    San Fran, CA - Mar 28-30, 2012
    Dallas, TX: Apr 29-May 1, 2012
    https://agilitrain.com/Workshop/Info/Web_Workshop
  • mrbuckers

    mrbuckers

    Member

    2 Points

    2 Posts

    Re: Re: Silverlight P2P

    Nov 25, 2007 06:39 AM | LINK

    Thanks for your reply! Do you know if there are any samples? Btw, if those two instances communicate between each other, do they still communicate over the server or directly?

    Thanks

  • swildermuth

    swildermuth

    Star

    8438 Points

    1547 Posts

    Re: Re: Re: Silverlight P2P

    Nov 26, 2007 03:06 AM | LINK

    The two instances are just objects in the browser so they'd communicate directly.  Just like you'd communicate with HTML elements...

    Shawn Wildermuth
    MVP, Speaker and Author

    Web Workshop (HTML5/CSS/MVC4)
    San Fran, CA - Mar 28-30, 2012
    Dallas, TX: Apr 29-May 1, 2012
    https://agilitrain.com/Workshop/Info/Web_Workshop