New Picture Hunt Silverlight Socket Sample

Introducing “Picture Hunt”, the newest Silverlight sample app.  This multiplayer game demonstrates the power of the System.Net Socket API inside a browser.  No more long-polls, or trying to turn HTML requests into something that’s almost a socket; you can use sockets directly!  The sample is also a “good network citizen”.  It shows the network status…


Silverlight 4 Socket Policy Changes

After installing the Silverlight plugin, a Silverlight application is able to run on your computer without your explicit consent whenever you browse to a webpage which links to it.  Because there is no explicit user action required to run, Silverlight applications are executed within what is known as a security sandbox – a locked-down environment which prevents…

3

System.Uri FAQ

            NCL includes classes for networking related technology such as the base type System.Uri.  URI’s are used extensively to identify network resources, especially on the Internet.  We’ve found that different customers frequently ask us the same questions about System.Uri and its capabilities, so we would like to share some of those questions with you here.  For…

7

UDP Multicast in Silverlight 4

In Silverlight 4, we have added multicast support. If you’re not familiar with multicast, here’s a quick scenario to explain what it is and why it might be useful to you. Scenario Overview Suppose your company provides market data and you need to distribute the same commodity and value records to 50,000 client workstations. It…

12

New Performance Counters for HttpWebRequest

Performance counters!  You can never get enough!  And starting with the .NET version 4.0 Beta 2, we in the System.Net team have added six new counters to the old set.  But before we begin, some ground rules: Performance counters have to be enabled in your application’s .config file.  I’ve put a sample of my config…


What’s new in System.Net.Mail

What’s new in System.Net.Mail We’ve made a number of enhancements to our SMTP support for .NET 4.0, mostly in the area of Unicode support and increased standards compliance, which is an important aspect in ensuring that legitimate emails do not get flagged as spam, as well as a few other useful features.  In this post…

12

End-to-end connectivity with NAT traversal

Like street numbers for a house, the Internet was originally designed so that all network devices could be directly addressed. Every connected device was given at least one unique identifier, or IP address, which could be used to route network packets to and from the device. For a while this worked well and devices had…

4

New NCL Features in .NET 4.0 Beta 2

We’re introducing some new features starting with .NET 4.0 Beta 2 that you may find useful. Additional information will be available on MSDN and in subsequent articles. If you have any questions or comments, let us know! Sockets DnsEndPoint This feature was first introduced in Silverlight 2 and it allows you to connect to a…

22

Why does Silverlight have a restricted port range for Sockets?

Silverlight restricts the ports of outgoing TCP socket connections to the range 4502 – 4534. Connecting to a different port requires the use of a server-side proxy or port redirector. One of the most common questions we hear from customers about this is, “Why do you restrict the port range in Silverlight? It doesn’t add…

7

Custom HTTP Authentication Schemes

Introduction           My name is Chris Ross and I work as a developer for Microsoft’s .NET Framework networking components.  As part of the Network Class Library (NCL) team I get lots of networking questions from other developers.  This post resulted from my research into a question about using custom HTTP authentication schemes.  The custom scheme in…

8