![]() In addition to being useful for scalable client sockets, they are widely used for server sockets, eventing and signaling, timer queues and much more. On Linux the EPoll APIs are very useful and can be applied to solving a variety of issues. We easily ported existing Windows code, but also Free Pascal (FPC) code that was originally authored for FPC Linux. We have already done quite a bit of work on Linux here at Grijjy with Delphi and I can safely say the new compiler seems to be quite solid with a high degree of compatibility with existing source code. In many ways Linux is preferable to Windows in the cloud and being able to build Linux modules is a great addition to the engineering arsenal. Building server-side modules and cloud based service processes is a key part of our focus. Here at Grijjy we are excited about the introduction of a Delphi Linux compiler. In this article we will focus on the additions and changes related to the Linux compiler and operating system. The syntax used in Part 1 and Part 2 of this article remains the same under Linux, so you should refer to those articles for a discussion of how to use the class for blocking, non-blocking, incremental http requests and more. If you are currently using the TgoHttpClient on Windows, your code should operate unchanged on Linux with the exact the same syntax. Additionally we added HTTP/2 support to the base class for Linux as well. We will extend the libc related headers in Delphi by adding support for the EPoll API and demonstrate how to use it. On Windows we used IOCP to create a highly scalable client, and on Linux we will use EPOLL to also create a scalable client. In this article we will show how to use Delphi’s new Linux compiler to expand our HTTP and TCP client base classes to also run on Linux. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |