Silverlight TV 70: Sockets Unplugged

Download this episode

Download Video

Description

Ever wonder how to use sockets or what they're good for? In this video, Peter Smith of the Silverlight networking team joins John to discuss these topics and demonstrate how sockets work by using them to play an "I Spy"-like game that Peter created. The game results and scores are updated instantly on two client PCs, and after Peter and John play, Peter jumps into the code and shows how the socket service works on both the client and the server.


Relevant links:

Follow us on Twitter @SilverlightTV or on the web at http://silverlight.tv

 

 

 

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      unt1tled

      Cool. Is this how it'll work on WP7?

    • User profile image
      Ben Hayat

      Excellent show.

      Same question, is the entire SL4 sockets stack being moved to Mango?

    • User profile image
      Peter smith

      AS far as Windows Phone goes -- the current 7.0 phone doesn't include sockets, so this won't work on the current phone. I've seen the same Mix meeting as anyone else about the "mango" socket support, but I haven't yet tried to move the game over to the Phone.

      It would certainly involve some rework -- in particular, the screen layout would need some radical changes, and I've have to make sure that the touch stuff was handled well.

    • User profile image
      Ben Hayat

      Peter, but do you know if the same socket structure from SL4 has been ported to Mango?

      Secondly, what you showed, was it based on SL4 or SL5?

      Thanks!

    • User profile image
      Peter Smith

      Keep in mind that I haven't seen the API yet --- but one of the overriding goals of .NET is to not splinter the API. That means that Silverlight browser .NET sockets have the same API as desktop .NET sockets (except for the synchronous stuff).

      What I showed is the regular shipping Silverligt. What's running right now in my browser is a version 4. Sockets have been part of Silverlight for a while now.

    • User profile image
      Ben Hayat

      @Peter Smith: Thanks Pete! You & John had great points;

      Hope to see you again when Mango is released. I'm very interested in sockets on WP7/Mobile as a portable device to share live info.

    • User profile image
      angelfly

      Nice demo, keep up the good work!

      Would it be possible to share the code?

      Thanks
      Angelo

    • User profile image
      Peter Smith

      Yes, the source code's in a zip file in the System.Net blog -- just follow the links.

    • User profile image
      angelfly

      Must remember to read carefully!! :)
      Thanks for your time.

      Angelo

    • User profile image
      B Clay Shannon

      Dang, the code is so blurry it looks Sanskrit circa 1967 San Francisco.

    • User profile image
      valdezjoel

      Very informative show. Thank you.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.