Houdini 20.5 hapi

hapi.startThriftSharedMemoryServer function

Starts a Thrift RPC server process on the localhost serving clients

Usage

startThriftSharedMemoryServer(options: hapi.ThriftServerOptions, shared_mem_name: str, log_file: str) → int

Starts a Thrift RPC server process on the localhost serving clients by utilizing shared memory to transfer data between the client and server and waits for it to start serving.

options

Options to configure the server being started.

shared_mem_name

The name of the memory buffer. This must be unique to the server in order to avoid any conflicts.

log_file

When a filepath is provided for this argument, all logs will be appended to the specified file. The specified path must be an absolute path. The server will create any intermediate directories in the filepath that do not already exist. When this argument is NULL/nullptr, logging will be directed to the standard streams.

Returns process_id as a int.

hapi