Suggested Practices for proxy configuration when using System.Net.HttpWebRequest

I have periodically received questions on how to configure code using HttpWebRequest in an application that may be run in multiple types of environments (home user, corporate domain, with or with out a proxy, etc).  This is what I would suggest. Don’t set a hard coded proxy unless you know the network configuration that you…

2

Simple Message Framing Sample for TCP Socket – Part 2 (Asynchronous)

As a follow up to my last post (http://blogs.msdn.com/joncole/archive/2006/03/20/555721.aspx) I decided to add some sample code for implementing an asynchronous version of ReadMessage.  All of the same rules apply as discussed in my previous post, but we now have more code we have to create in order to maintain state across calls to our handling…

6

Simple Message Framing Sample for TCP Socket

A common misunderstanding for developers new to network programming over TCP sockets is how messages are sent and received.  I frequently hear the statement that “my data is not arriving on the other side of the socket in the same format that I sent it.”  The most common cause of this is because the TCP…

11