Function psp::sys::sceNetAdhocPdpRecv

source ·
#[no_mangle]
pub unsafe extern "C" fn sceNetAdhocPdpRecv(
    id: i32,
    src_mac_addr: *mut u8,
    port: *mut u16,
    data: *mut c_void,
    data_length: *mut c_void,
    timeout: u32,
    nonblock: i32
) -> i32
Expand description

Receive a PDP packet

§Parameters

  • id: The ID of the PDP object, as returned by ::sceNetAdhocPdpCreate
  • src_mac_addr: Buffer to hold the source mac address of the sender
  • port: Buffer to hold the port number of the received data
  • data: Data buffer
  • data_length: The length of the data buffer
  • timeout: Timeout in microseconds.
  • nonblock: Set to 0 to block, 1 for non-blocking.

§Return Value

Number of bytes received, < 0 on error.