I want to create a single client that issues unicast requests for data from any of many workstations on the same LAN. The client will likely run Linux, but the workstations may run any OS. Is it possible to avoid running a daemon on each of the workstations and yet have them reply to requests within a few seconds? I want to avoid creating a daemon because the service may be infrequently used and I don’t want to burden the workstations with another process.
Share
Take a look at suitable implementations of
inetdfor your target operating system. This service listens for connections, and delegates the actual communication to plain IO through stdin/stdout to an instance of your process (which gets spawned on demand):