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.
ox_accel_send
Send a payload through the accelerated tunnel.Parameters
Connected context.
Pointer to payload bytes. Must point to at least
len readable bytes.Payload length in bytes. Must be greater than 0.
Returns
| Value | Meaning |
|---|---|
Ok | Data sent successfully |
InvalidParam | NULL pointer or zero length |
NotConnected | ox_accel_connect not called |
SendFailed | Network error |
Example
The SDK borrows
data only for the duration of the call. You can reuse or free the buffer immediately after ox_accel_send returns.ox_accel_recv
Receive a payload from the accelerated tunnel.Parameters
Connected context.
Caller-allocated receive buffer. Must point to at least
buf_len writable bytes.Size of the receive buffer in bytes.
On success, receives the number of bytes written to
buf.Returns
| Value | Meaning |
|---|---|
Ok | Data received, *out_len set |
InvalidParam | NULL pointer or zero buffer |
NotConnected | ox_accel_connect not called |
RecvFailed | Network error |
BufferTooSmall | Buffer too small for incoming data |