enpose_pose_stream_connect

Function enpose_pose_stream_connect 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn enpose_pose_stream_connect( ip: *const c_char, create_thread: bool, ) -> *mut PoseStream
Expand description

Connect a pose stream to the device at ip (an IPv4 string).

The Enpose API is IPv4-only; a non-IPv4 address fails. When create_thread is non-zero, a background thread receives and buffers poses (the preferred mode); otherwise poses are collected when enpose_pose_stream_receive is called. Returns an opaque handle, or NULL on failure (a non-IPv4 or invalid address, or a connection error). Release the handle with enpose_pose_stream_free.

ยงSafety

ip must be a valid, null-terminated C string.