STServer exposes STInput/STOutput arrays over
D-Bus TCP and listens to each object’s notify to forward
updates.
Access may be anonymous (default) or protected with a shared
authentication token. With a token set, clients must
Authenticate before I/O methods; the server compares a
SHA-256 digest and drops mismatches. Core:
gsettings org.starter.core auth-token or
--auth-token. Clients: st_client_set_auth_token
before start.
Creates a server that will publish the given I/O arrays. Arrays are shared (not copied): mutations in your objects are visible to the server.
Service name (e.g. ST:MyService).
Pointer to version triple (copied).
GPtrArray of STInput * (element destroy typically g_object_unref).
GPtrArray of STOutput *.
Returns: New STServer.
Binds the D-Bus TCP listener and starts serving.
Server.
TCP port; 0 requests an ephemeral port (then use st_server_get_port).
Filled on bind/listen failure.
Returns: TRUE on success, FALSE on failure.
Reads the bound port (meaningful after a successful start).
Server.
Returns: Port number, or 0 if not running.
Reports whether the listener is active.
Server.
Returns: TRUE if running.
Stops the listener and drops peers.
Server.
Returns: Nothing.
Stops and rebinds on a new port (or ephemeral if 0).
Server.
New port, or 0 for ephemeral.
Filled on failure.
Returns: TRUE on success.
Sets the bind address string used on the next start (e.g. 0.0.0.0 or 127.0.0.1).
Server.
Address string; copied.
Returns: Nothing.
Reads the configured bind address.
Server.
Returns: Newly allocated address string (transfer full), or NULL.
Sets the main context for the D-Bus server listen loop.
Server.
Context, or NULL for default.
Returns: Nothing.
Reads the listen context.
Server.
Returns: Borrowed GMainContext.
Configures the shared peer auth secret. Empty or NULL means anonymous access.
Server.
Shared secret, or NULL/empty for anonymous.
Returns: Nothing.
Reads the configured token.
Server.
Returns: Newly allocated token (transfer full), or NULL.