How to: read a snowman ☃ – terminated text from a TCP socket in Delphi and Free Pascal

Full source code now available on GitHub. Covering Internet Direct (Indy), Ararat Synapse, and Synapse SynCrtSock. This is the second part in a series which explores basic TCP socket use cases and presents them in minimal examples. For this part, I selected an unusual string terminator byte sequence. The Unicode Character “☃” (U+2603), named Snowman, … Continue reading How to: read a snowman ☃ – terminated text from a TCP socket in Delphi and Free Pascal

How to: read a fixed number of bytes from a TCP socket in Delphi and Free Pascal

Full source code now available on GitHub. Covering Internet Direct (Indy), Ararat Synapse, and Synapse SynCrtSock. This is the first part in a series which explores basic TCP socket use cases and presents them in minimal examples, with useful comments regarding not-so-obvious requirements and pitfalls (a.k.a surprising results). The clients are tested with a small … Continue reading How to: read a fixed number of bytes from a TCP socket in Delphi and Free Pascal

How to: Server-Sent Events with Indy HTTP Server (part 3)

In this part, the server application uses the Indy HTTP server uses SSE to continuously send events to the JavaScript EventSource. Part 3: the demo application, now streaming Ingredient #1: the HTML page with JavaScript The script has not changed, it reads two data items from the ping event: a time stamp in ISO 8601 … Continue reading How to: Server-Sent Events with Indy HTTP Server (part 3)

How to: Server-Sent Events with Indy HTTP Server (part 2)

In this second part, a server application uses the Indy HTTP server to provide a HTML page which uses SSE to update its content with data sent from the server. Part 2: the basic demo application, some client data added Ingredient #1: the HTML page with JavaScript The script now reads two data items from … Continue reading How to: Server-Sent Events with Indy HTTP Server (part 2)

How to: Server-Sent Events with Indy HTTP Server (part 1)

In this article, a server application uses the Indy HTTP server to provide a HTML page which uses SSE to update its content with data sent from the server. Server-Sent Events (SSE) is a server push technology enabling a client to receive automatic updates from a server via an HTTP connection, and describes how servers … Continue reading How to: Server-Sent Events with Indy HTTP Server (part 1)

ScroogeXHTML for Object Pascal 8.2 released

ScroogeXHTML for Object Pascal is a library which supports a subset of the Rich Text Format (RTF) standard. It converts RTF to HTML5 and XHTML stand-alone documents, or to fragments which can be embedded in other documents. The library is compatible with Delphi 2009+ and Free Pascal 3.2.0. The 8.2 release includes small improvements in … Continue reading ScroogeXHTML for Object Pascal 8.2 released

ScroogeXHTML for Object Pascal 8.1 released

ScroogeXHTML for Object Pascal is a library which supports a subset of the Rich Text Format (RTF) standard. It converts RTF to HTML5 and XHTML stand-alone documents, or to fragments which can be embedded in other documents. The library is compatible with Delphi 2009+ and with Free Pascal 3.2.0. The 8.1 release includes small improvements … Continue reading ScroogeXHTML for Object Pascal 8.1 released

Indy FTP LIST timeout with Delphi 11 in active mode (solved)

In the Indy issue tracker, a bug was reported which first appeared with Delphi 11. FTP LIST timeout with latest Delphi 11 (and idFTP) It is possible to reproduce the bug not only with Delphi 11 but also with Free Pascal. Reportedly the timeout also occurs with Delphi 10.4. If you want to reproduce it … Continue reading Indy FTP LIST timeout with Delphi 11 in active mode (solved)

ScroogeXHTML for Object Pascal 8.0 released

ScroogeXHTML for Object Pascal is a library which supports a subset of the Rich Text Format (RTF) standard. It converts RTF to HTML5 and XHTML standalone documents, or to fragments which can be embedded in other documents. ScroogeXHTML is compatible with Delphi 2009+ and tested with Free Pascal 3.2.0. Version 8.0 is a major release … Continue reading ScroogeXHTML for Object Pascal 8.0 released

ScroogeXHTML for Object Pascal 7.3 released

ScroogeXHTML for Object Pascal is a library which supports a subset of the Rich Text Format (RTF) standard. It converts RTF to HTML5 and XHTML standalone documents, or to fragments which can be embedded in other documents. ScroogeXHTML converts text attributes including background and highlight colors, paragraph alignment (left, right, centered, justified) and indent (left, … Continue reading ScroogeXHTML for Object Pascal 7.3 released