In this chapter you looked at the .NET Framework class library facilities for networking. You learned how to use the WebClient class to retrieve data from HTTP servers, how to use the TcpListener, TcpClient, and UdpClient classes to perform connection-oriented and connectionless networking, how to use the Dns class to retrieve DNS information, and how to use the HttpListener class to create a simple web server.
You also took a quick tour of the Windows Communications Foundation, which supports C# object and value semantics across networks—something that requires a little more work, but makes the resulting program more robust and natural to work with.
Unable to display preview. Download preview PDF.