Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.oxd.sh/llms.txt

Use this file to discover all available pages before exploring further.

Design principles

The SDK exposes a C ABI through an opaque handle pattern. This makes it callable from any language with C FFI support.

Opaque handle

All state lives behind an OxAccel* pointer. You create it with ox_accel_create, use it across all operations, and free it with ox_accel_destroy. Never inspect or modify the pointer contents directly.

Thread safety

The handle is internally locked. You can safely call ox_accel_send, ox_accel_recv, and ox_accel_stats from multiple threads concurrently. The only restriction: ox_accel_destroy must not be called while another thread is using the handle.

Error model

All fallible functions return OxAccelError. Zero (Ok) means success. Non-zero values are specific error conditions — see Error Codes.

Memory ownership

FunctionOwnership
ox_accel_createReturns a heap-allocated handle. Caller owns it.
ox_accel_destroyFrees the handle. Caller must not use it after.
ox_accel_sendBorrows data for the duration of the call.
ox_accel_recvWrites into caller-provided buf.
ox_accel_statsWrites into caller-provided AccelStats.
ox_accel_versionReturns a static string. Caller must not free it.

Function index

FunctionCategoryDescription
ox_accel_createLifecycleCreate context
ox_accel_connectLifecycleConnect to relay
ox_accel_destroyLifecycleFree context
ox_accel_sendDataSend payload
ox_accel_recvDataReceive payload
ox_accel_statsStatsRead statistics
ox_accel_versionInfoSDK version string