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.
For AI coding assistants
This page helps AI coding agents (Claude Code, Cursor, Copilot, Windsurf, etc.) integrate Oxidize Accel into any application as fast as possible. Point your coding agent here, or includellms.txt in your project context.
API surface (6 functions)
Config struct
Error codes
0 Ok, 1 InvalidParam, 2 InitFailed, 3 NotConnected, 4 SendFailed, 5 RecvFailed, 6 Timeout, 7 BufferTooSmall
Per-language quickest path
| Language | Mechanism | Zero-copy pattern |
|---|---|---|
| C/C++ | #include "oxaccel.h", link -loxaccel | Direct pointer |
| Python | ctypes.CDLL("liboxaccel.so") | Pass bytes directly |
| Go | cgo + #include "oxaccel.h" | unsafe.Pointer(&data[0]) + runtime.KeepAlive |
| Java/Kotlin | JNI bridge → System.loadLibrary | ByteBuffer.allocateDirect() |
| C#/Unity | [DllImport("oxaccel")] P/Invoke | fixed(byte* ptr = data) |
| Swift | Bridging header | data.withUnsafeBytes {} |
| Node.js | koffi.load("liboxaccel.so") | Buffer maps to uint8_t* |
| Dart/Flutter | DynamicLibrary.open, dart:ffi | Pointer<Uint8> |
| React Native | JNI (Android) + bridging header (iOS) | Base64 over bridge |
Performance rules
- Create context once, send/recv many times
- Use zero-copy patterns for your language (see above)
- Pre-allocate and reuse receive buffers
- Enable FEC for lossy networks
- Disable compression for latency-sensitive workloads (gaming, trading)
- Never call recv from multiple threads on same context
Platform libraries
| Platform | File |
|---|---|
| Linux x86_64 | liboxaccel.so / liboxaccel.a |
| Linux aarch64 | liboxaccel.so / liboxaccel.a |
| Linux musl | liboxaccel.a (static only) |
| macOS Universal | liboxaccel.dylib / liboxaccel.a |
| Windows | oxaccel.dll + oxaccel.lib |
| Android | liboxaccel.so per ABI |
| iOS | liboxaccel.a (static) |