Chapter 6

Introduction to System.Net







What we have in this chapter?

  1. Introduction

  2. Layers of System.Net

  3. Basic Network Types and Services

  4. Using IP Addresses

  5. Working with Different Address Families

  6. Accessing Protected Resources

  7. Accessing DNS

  8. C++ Services and Types Program Example

  9. C# Services and Types Program Example

  10. VB .NET Services and Types Program Example

  11. Using the Socket-Level Classes

  12. Socket Classes

  13. Reading and Writing with NetworkStream

  14. Using the Socket-Level Helper Classes

  15. C++ Socket Program Example

  16. C# Socket Program Example

  17. VB .NET Socket Program Example

  18. Application Protocols

  19. Protocol Support

  20. HTTP Connection Management

  21. HTTP Error Handling

  22. File Scheme Support

  23. C++ HTTP Protocol Program Example

  24. C# HTTP Protocol Program Example

  25. VB .NET HTTP Protocol Program Example

  26. Request-Response Model

  27. Resolving URIs with WebRequest and WebResponse

  28. Request-Response Model Helper Classes

  29. Deciding When to Use System.Net

  30. Common Scenarios for Using System.Net

  31. Accessing an Existing Service or Protocol Provided by System.Net

  32. Implementing a Protocol Not Provided by System.Net

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

  34. System.Net vs. Web Services or .NET Remoting

  35. C++ Request and Response Program Example

  36. C# Request and Response Program Example

  37. VB .NET Request and Response Program Example

  38. C++ Request and Response Web Client Program Example

  39. C# Request and Response Web Client Program Example

  40. 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 >