Skip to main content

ddsrt_send

Function ddsrt_send 

Source
pub unsafe extern "C" fn ddsrt_send(
    sock: ddsrt_socket_t,
    buf: *const c_void,
    len: usize,
    flags: c_int,
    bytes_written: *mut usize,
) -> dds_return_t
Expand description

@brief Send data from a buffer

  • Sends ‘len’ bytes of ‘buf’
  • The ‘flags’ can be 0, or the bitwise OR of one or more of: {MSG_CONFIRM, MSG_DONTROUTE, MSG_DONTWAIT, MSG_EOR, MSG_MORE, MSG_NOSIGNAL, MSG_OOB}

@param[in] sock the socket @param[in] buf buffer containing the data to send @param[in] len size (in bytes) of ‘buf’ @param[in] flags flags for special options @param[out] bytes_written the number of bytes sent @return a DDS_RETCODE (OK, ERROR, and more)

See @ref ddsrt_recv