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.
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
.