Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Silverlight TV 70: Sockets Unplugged

14 minutes, 18 seconds


Right click “Save as…”

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





Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
  • Jarem Archerunt1tled where ever you go, there you'll be.

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

  • Excellent show.

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

  • Peter smithPeter 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.

  • 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?


  • Peter SmithPeter 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.

  • @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.

  • angelflyangelfly

    Nice demo, keep up the good work!

    Would it be possible to share the code?


  • Peter SmithPeter Smith

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

  • angelflyangelfly

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


  • B Clay ShannonB Clay Shannon

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

  • Joel Valdezvaldezjoel Joel Valdez

    Very informative show. Thank you.

Remove this comment

Remove this thread


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.