Skip to main content

xila_udp_receive_from

Function xila_udp_receive_from 

Source
pub unsafe extern "C" fn xila_udp_receive_from(
    socket: *mut Udp,
    buffer: *mut c_void,
    size: usize,
    address: *mut NetworkAddress,
    count: *mut usize,
) -> Status
Expand description

Nonblocking datagram receive. Overflow preserves the datagram; outputs change only on success.

ยงSafety

Objects must be live and calls serialized. Inputs must be readable and outputs aligned, writable and disjoint from inputs and objects. Buffers must be valid for their lengths. Owned objects must be released exactly once.