Function ctru_sys::udsCreateNetwork

source ·
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_
) -> Result
Expand 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.