Function psp::sys::sceNetAdhocMatchingCreate
source · #[no_mangle]
pub unsafe extern "C" fn sceNetAdhocMatchingCreate(
mode: AdhocMatchingMode,
max_peers: i32,
port: u16,
buf_size: i32,
hello_delay: u32,
ping_delay: u32,
init_count: i32,
msg_delay: u32,
callback: AdhocMatchingCallback
) -> i32
Expand description
Create an Adhoc matching object
§Parameters
mode
: One of ::AdhocMatchingModemax_peers
: Maximum number of peers to match (only used when mode is Host)port
: Port. Lumines uses 0x22Bbuf_size
: Receiving buffer sizehello_delay
: Hello message send delay in microseconds (only used when mode is PHost or PTP)ping_delay
: Ping send delay in microseconds. Lumines uses 0x5B8D80 (only used when mode is Host or Ptp)init_count
: Initial count of the of the resend counter. Lumines uses 3msg_delay
: Message send delay in microsecondscallback
: Callback to be called for matching
§Return Value
ID of object on success, < 0 on error.