Logging activity
In this chapter, our focus is on building robust server applications that run in the background without human intervention, providing services to clients. In a similar way to the beacons and IoT devices we learned about in Chapter 11, Extending Delphi with Bluetooth, IoT, and Raspberry Pi, addresses and data formats must be agreed upon by both the client and server for there to be useful communication. However, one big conceptual difference is that IoT devices don't wait for clients to request data; instead, they just continually spew forth information, including the services they provide and what format to use, over Bluetooth for anyone close enough to pick it up. The servers we're building in this chapter listen for specific requests on a specific port and then respond. This requires a little more coordination to get right because there's no advertisement mode for the service that is provided.
Because of the "silent waiting" mode that...