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 ::sceNetAdhocPdpCreatesrc_mac_addr
: Buffer to hold the source mac address of the senderport
: Buffer to hold the port number of the received datadata
: Data bufferdata_length
: The length of the data buffertimeout
: Timeout in microseconds.nonblock
: Set to 0 to block, 1 for non-blocking.
§Return Value
Number of bytes received, < 0 on error.