Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Internet Classes

The FCL’s System.Net namespace includes classes for performing Internet-related tasks such as submitting HTTP requests to Web servers and resolving names using the Domain Name System (DNS). The daughter namespace System.Net.Sockets contains classes for communicating with other machines using TCP/IP sockets. Together, these namespaces provide the foundation for the FCL’s Internet programming support. Other namespaces, such as System.Web and System.Web.Mail, contribute classes of their own to make the .NET Framework a first-rate tool for writing Internet-enabled applications.

Two of the most useful classes in the System.Net namespace are WebRequest and WebResponse, which are abstract base classes that serve as templates for object-oriented wrappers placed around HTTP and other Internet protocols. System.Net includes a pair of WebRequest/WebResponse derivatives named HttpWebRequest and HttpWebResponse that make it easy for managed applications to fetch Web pages and other resources available through HTTP. Learning about these classes is a great starting point for exploring the Internet programming support featured in the FCL.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint