pub unsafe extern "C" fn udsCreateNetwork(
network: *const udsNetworkStruct,
passphrase: *const c_void,
passphrase_size: usize,
context: *mut udsBindContext,
data_channel: u8_,
recv_buffer_size: u32_,
) -> ResultExpand description
Starts hosting a new network.
ยงArguments
network- The NetworkStruct, you can use udsGenerateDefaultNetworkStruct() for generating this.passphrase- Raw input passphrase buffer.passphrase_size- Size of the passphrase buffer.context- Optional output bind context which will be created for this host, with NetworkNodeID=UDS_BROADCAST_NETWORKNODEID.data_channel- This is the data_channel value which will be passed to udsBind() internally.recv_buffer_size- This is the recv_buffer_size value which will be passed to udsBind() internally.