Houdini 20.5 hapi

hapi.startThriftSocketServer function

Starts a Thrift RPC server process on the local host serving

Usage

startThriftSocketServer(options: hapi.ThriftServerOptions, port: int, log_file: str) → int

Starts a Thrift RPC server process on the local host serving clients on a TCP socket and waits for it to start serving. It is safe to create an RPC session on local host using the specified port after this call succeeds.

options

Options to configure the server being started.

port

The TCP socket to create on the server.

log_file

When a filepath is provided for this argument, all logs will be appended to the specified file. The specfied 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