pub unsafe extern "C" fn ddsrt_setsocknonblocking(
sock: ddsrt_socket_t,
nonblock: bool,
) -> dds_return_tExpand description
@brief Set the I/O on the socket to blocking or non-nonblocking.
@param[in] sock Socket to set I/O mode for. @param[in] nonblock true for nonblocking, or false for blocking I/O.
@returns A dds_return_t indicating success or failure.
@retval DDS_RETCODE_OK I/O mode successfully set to (non)blocking. @retval DDS_RETCODE_TRY_AGAIN A blocking call is in progress. @retval DDS_RETCODE_BAD_PARAMETER @sock is not a valid socket. @retval DDS_RETCODE_ERROR An unknown error error occurred.