Chapter 6Introduction to System.Net
|
||
|
What do we have in this chapter?
Layers of System.NetBasic Network Types and ServicesUsing IP AddressesWorking with Different Address FamiliesAccessing Protected ResourcesAccessing DNSC# Services and Types Program ExampleVB .NET Services and Types Program ExampleSocket ClassesReading and Writing with NetworkStreamUsing the Socket-Level Helper ClassesC++ Socket Program ExampleVB .NET Socket Program ExampleProtocol SupportHTTP Connection ManagementHTTP Error HandlingFile Scheme SupportC++ HTTP Protocol Program ExampleVB .NET HTTP Protocol Program ExampleResolving URIs with WebRequest and WebResponseRequest-Response Model Helper ClassesDeciding When to Use System.NetCommon Scenarios for Using System.NetAccessing an Existing Service or Protocol Provided by System.NetImplementing a Protocol Not Provided by System.NetExtending a Higher Layer of the Stack That Uses System.NetSystem.Net vs. Web Services or .NET RemotingC++ Request and Response Program ExampleVB .NET Request and Response Program ExampleC++ Request and Response Web Client Program ExampleC# Request and Response Web Client Program ExampleVB .NET Request and Response Web Client Program Example
Summary
This chapter will introduce the System.Net namespace. It will describe the purpose of the classes in System.Net and review its layers of functionality. We will review the basic types and services such as address manipulation and interaction with DNS. We will discuss the socket-level classes, including Socket, NetworkStream, and other helper classes. We then will walk through the HttpWebRequest and HttpWebResponse classes, which provide access to the HTTP protocol. Finally, we will review the request-response URI resolution pattern and its helpers. This chapter also will cover recommendations on when to use System.Net versus the higher-level communication classes provided by Web services and .NET Remoting. Starting with these classes and their basic purpose, the next five chapters will describe the workings of these classes in much more detail.
|
|
|
![]() Custom Search
|
|
< Uniform Resource Identifiers (URIs) | Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7 | Part 8 | IP Addressing and DNS > | ||