Function gnunet_sys::GNUNET_DNSPARSER_builder_add_srv[][src]

pub unsafe extern "C" fn GNUNET_DNSPARSER_builder_add_srv(
    dst: *mut c_char,
    dst_len: usize,
    off: *mut usize,
    srv: *const GNUNET_DNSPARSER_SrvRecord
) -> c_int

Add an SRV record to the UDP packet at the given location.

@param dst where to write the SRV record @param dst_len number of bytes in @a dst @param off pointer to offset where to write the SRV information (increment by bytes used) can also change if there was an error @param srv SRV information to write @return #GNUNET_SYSERR if @a srv is invalid #GNUNET_NO if @a srv did not fit #GNUNET_OK if @a srv was added to @a dst