23.3. Sending Commands by TCP

It is possible to send DataHub commands directly to a DataHub instance over TCP, by using a tunnelling/mirroring connection. The communication between a client and the DataHub instance over TCP follows the guidelines below.

There is a function in the C++ header file of the C++ API that parses this kind of stream, called UT_LispParse, and another function called UT_LispString that can help a little with writing Lisp expressions. They automatically add double-quotes around %s formatted strings, and escape characters within the string.