NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Accessing the Internet

The NGWS frameworks provides an integrated and managed implementation of Internet services that can be integrated quickly and easily into your applications. The supplied Internet access classes can be used to implement both Web- and Internet-based applications.

Access to the Internet in the NGWS frameworks is through "pluggable protocols," an implementation of network services that can be used at a high level without needing to know the underlying protocol. Pluggable protocols are built on two abstract classes, WebRequest and WebResponse, that encapsulate the transaction between the client and the server, enabling them to communicate without worrying about the details of the protocol used. The protocol-specific implementations of these classes manage the details of making the actual connections to Internet services. Classes for data access via the HTTP protocol, HttpWebRequest and HttpWebResponse, are provided; additional protocol-specific classes can easily be derived from WebRequest and WebResponse.

For applications that need to access network services at the socket level, managed versions of these services are available as well. The System.Net.Socket namespace provides an implementation of the Windows Sockets interface. At a higher level, TCP and UDP services can be built on the TCPClient, TCPListener, and UDPClient classes. All high-level Internet access classes in System.Net are built on the socket-level classes in System.Net.Socket.