14Networking

14.1 Requests and Responses

14.2 Clients and Servers

14.3 Browsers and Web Servers

14.4 Remoting

C # makes it easy to connect to other computers, using classes from the .NET Library. We first write client programs that connect to a server, which is a program that performs a task useful to its clients, and then write our own servers. A web server provides files such as web pages and images.

To write client programs, we first use C# classes that enable us to hide the details of the interaction between client and server. We then try classes that let us customize the connection, and present classes that give us full control of the communication, but require us then to know the details of the request and response commands.

The simplest ...

Get Computing with C# and the .NET Framework, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.