How to do it...

Perform the following steps:

  1. Navigate to Delphi Project | Web Broker | Web Server Application.
  2. The wizard asks you to specify the type of platform for the application. Obviously check Linux and click Next.
  3. Now the wizard asks you what type of web server application you want to create. This demo will be built as a console application; however, you can take advantage of the flexibility of WebBroker and add another type of application, for instance an Apache module, which we will see in the last recipe of this chapter. At this point, select Stand-alone console application and click Next.
  4. The wizard proposes a TCP port where the service will listen. Click on the Test port. If the test port succeeds, use it; otherwise, change ...

Get Delphi Cookbook - Third 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.