Chapter 20 dealt with Web services, describing how to send messages from the client to the server in a platform-independent way with the SOAP protocol. In this chapter, you step into lower networking layers, programming with classes from the namespace System.Net. Web services itself uses this technology.
This chapter begins with an overview of programming client and server applications with classes from the namespaces System.Net and System.Net.Sockets, which make use of protocols such as HTTP, TCP, and UDP. You will cover both connection-oriented applications with TCP and connection-less applications with the UDP protocol.
In this chapter, you learn about:
An overview of networking
Networking programming options
Using WebRequest
TcpListener and TcpClient
Socket programming