[−][src]Function xaynet::sdk::api::new_client
#[no_mangle]pub unsafe extern "C" fn new_client(
address: *const c_char,
period: c_ulonglong
) -> *mut FFIClient
Creates a new Client
within an asynchronous runtime.
Takes a network address
to the coordinator to which the Client
will try to connect to.
Takes a period
in seconds after which the Client
will try to poll the coordinator for new
broadcasted FL round data again.
Errors
Ignores null pointer address
es and zero period
s and returns a null pointer immediately.
Returns a null pointer if the initialization of the runtime or the client fails.
Safety
The method dereferences from the raw pointer arguments. Therefore, the behavior of the method is undefined if the arguments don't point to valid objects.