Chapter 6

Introduction to System.Net






What do we have in this chapter?

  1. Introduction

  2. Layers of System.Net

    Basic Network Types and Services

    Using IP Addresses

    Working with Different Address Families

    Accessing Protected Resources

    Accessing DNS

  3. C++ Services and Types Program Example

  4. C# Services and Types Program Example

    VB .NET Services and Types Program Example

  5. Using the Socket-Level Classes

  6. Socket Classes

    Reading and Writing with NetworkStream

    Using the Socket-Level Helper Classes

    C++ Socket Program Example

  7. C# Socket Program Example

  8. VB .NET Socket Program Example

  9. Application Protocols

  10. Protocol Support

    HTTP Connection Management

    HTTP Error Handling

    File Scheme Support

    C++ HTTP Protocol Program Example

  11. C# HTTP Protocol Program Example

  12. VB .NET HTTP Protocol Program Example

  13. Request-Response Model

  14. Resolving URIs with WebRequest and WebResponse

    Request-Response Model Helper Classes

    Deciding When to Use System.Net

    Common Scenarios for Using System.Net

    Accessing an Existing Service or Protocol Provided by System.Net

    Implementing a Protocol Not Provided by System.Net

    Extending a Higher Layer of the Stack That Uses System.Net

    System.Net vs. Web Services or .NET Remoting

    C++ Request and Response Program Example

  15. C# Request and Response Program Example

  16. VB .NET Request and Response Program Example

    C++ Request and Response Web Client Program Example

    C# Request and Response Web Client Program Example

    VB .NET Request and Response Web Client Program Example





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 >