7. Socket map client

The smapc program is a console-based utility for querying socket map servers. It has two operation modes. In single query mode, the utility performs a query, displays its result and exits immediately. In interactive mode, the utility enters a read-and-eval loop, in which it reads queries from the keyboard, runs them, and displays obtained results on the screen.