Function ctru_sys::udsPullPacket

source ·
pub unsafe extern "C" fn udsPullPacket(
    bindcontext: *const udsBindContext,
    buf: *mut c_void,
    size: usize,
    actual_size: *mut usize,
    src_NetworkNodeID: *mut u16_
) -> Result
Expand description

Receives data over the network. This data is loaded from the recv_buffer setup by udsBind(). When a node disconnects, this will still return data from that node until there’s no more frames from that node in the recv_buffer.

§Arguments

  • bindcontext - Bind context.
  • buf - Output receive buffer.
  • size - Size of the buffer.
  • actual_size - If set, the actual size written into the output buffer is stored here. This is zero when no data was received.
  • src_NetworkNodeID - If set, the source NetworkNodeID is written here. This is zero when no data was received.