SD Core Solo for Linux LS2.0-0

Client distribution

The shared library an application needs, why there are two names, and how to build one.

An application reaches SD Core Solo for Linux through a shared library. You do not have to find it inside an installed SD system — the source builds standalone as well, because the person writing an application and the person running the server are not always the same person.

Two names, one source#

sdclilib.so
libsdcli.so

Both are built from the same object files in the same step — sdclilib.so is the name an application historically asks for; libsdcli.so follows the ordinary Unix lib*.so convention (-lsdcli at link time). They are not two copies to keep in sync by hand — one build target produces both, so there is nothing to drift.

There is no 32-bit client, for Linux or for Windows: a 32-bit application must be built again as a 64-bit one. A program written for QM does not work with SD out of the box, because of the changes SD has made.

Where it lands#

Built to bin/ under the source tree by make; an installed Solo tree has both under ~/SDCoreSolo/bin. There is no separate client-only package yet — building from source, or copying the .so from an installed tree, is how an application gets it today.

The library must speak SCRAM#

There is no cleartext API login. A client that sends a password in clear is refused with "Cleartext login is no longer supported; this server requires SCRAM authentication". Use the client library that comes with SD.

Connecting#

Your application code does not change for SDConnect(), which takes the same arguments and returns the same things it always did. SDConnectLocal() is different: it is disabled, because it sends no password and every Solo session proves one.

SDConnect() over the network, to port 4249. Use 127.0.0.1 for this computer. Signs in as sduser with the account password
SDConnectLocal() not available. It returns at once, with the error SDConnectLocal is not available in SD Core Solo for Linux - connect with SDConnect and the account password

BASIC programs reaching another SD server use the !sdclient class, which speaks the SCRAM login too — connect() takes the same arguments, but the program has to be running under this release at both ends.

Everything about what a connected session may open and the identity it runs as is on API access.

Building from source#

The source lives in the server's own repository at sdb_ai/sd64/gplsrc/sdclilib.c, and make produces it together with the server — https://github.com/dmontaine/SDCore4LinuxSolo. No built .so is committed, so a clone builds — the same no-binaries rule the whole repository follows.

A standalone copy of the same source, kept in sync for building the client without the whole server tree, is at https://github.com/dmontaine/linuxsdclilib. That copy is the multiuser product's and still has SDConnectLocal; against a Solo computer use SDConnect.

The C headers are shipped with the source tree, and a header for each of seven more languages is installed with SD, in ~/SDCoreSolo/syscom: sdclient.bas (Basic), sdclient.pb (PureBasic), sdclient.module (Gambas 3), sdclilibbind.pas (Free Pascal and Lazarus), sdclient.py (Python 3), sdclient.cs (C# and .NET) and sdclient.php (PHP, with FFI), beside sdclilib.h. All eight declare every function of the library; see SD Client API and SD Client API: Language Bindings in the User set.

They are for clients on any machine. SD carries them so that whoever writes a client has them, including a Windows client of this Linux computer: it uses the same files with the Windows kit's C client library, sdclilib.dll, in place of sdclilib.so (the same functions, the same protocol and login).