In this chapter, we look at a number of self-contained scripts, with an emphasis on concise networking. Along the way, we work towards creating building blocks that encapsulate often needed functions of the networking world, show new techniques that broaden the scope of problems that can be solved with gawk, and explore leading edge technology that may shape the future of networking.
We often refer to the site-independent core of the server that
we built in
A Simple Web Server.
When building new and nontrivial servers, we
always copy this building block and append new instances of the two
This makes a lot of sense, since this scheme of event-driven execution provides gawk with an interface to the most widely accepted standard for GUIs: the web browser. Now, gawk can rival even Tcl/Tk.