Function gnunet_sys::GNUNET_NETWORK_socket_sendto[][src]

pub unsafe extern "C" fn GNUNET_NETWORK_socket_sendto(
    desc: *const GNUNET_NETWORK_Handle,
    message: *const c_void,
    length: usize,
    dest_addr: *const sockaddr,
    dest_len: socklen_t
) -> isize

Send data to a particular destination (always non-blocking). This function only works for UDP sockets.

@param desc socket @param message data to send @param length size of the data in @a message @param dest_addr destination address @param dest_len length of @a dest_addr @return number of bytes sent, #GNUNET_SYSERR on error