Translate This Page
Translate this page
Port Sharing Service
Browse by Tags
Tagged Content List
Sample Asynchronous SslStream Client/Server Implementation
I was recently asked about sample code for the System.Net.Security.SslStream using the asynchronous APIs. I searched the web and couldn't find anything significant, so I decided to write some that included the asynchronous usage of the TcpListenter and TcpClient objects (both in the System.Net.Sockets...
13 Jun 2007
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...
13 Jun 2006
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...
25 Apr 2006
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...
20 Mar 2006
Debugging a memory leak in managed code: Ping - SendAsync
Included in version 2.0 of the .NET framework is a Ping class (System.Net.NetworkInformation namespace) that can be used to monitor the up/down status of a network connection to a server. We recently realized that we had a minor bug in the class that can present itself as a major problem - a memory leak...
15 Dec 2005
HttpWebRequest and Authentication - Part 1
Authentication over HTTP is a way for a client to prove its identity to the server so that it can gain access to a resource. In this series I will discuss the various types of authentication to servers and to proxy servers. I assume you have a basic understanding of HTTP including the use of headers...
9 Nov 2005
HttpWebRequest and Expect 100 Continue
How do the ServicePointManager.Expect100Continue and ServicePoint.Expect100Continue properties change the behavior of my HttpWebRequest? This is a question that seems to come up from time to time and I thought I would give a little more information. First, lets talk about the difference between the...
8 Sep 2005
Page 1 of 1 (7 items)
© 2014 Microsoft Corporation.
Privacy & Cookies