Function librist_sys::rist_peer_create[][src]

pub unsafe extern "C" fn rist_peer_create(
    ctx: *mut rist_ctx,
    peer: *mut *mut rist_peer,
    config: *const rist_peer_config
) -> c_int

@brief Add a peer connector to the existing sender.

One sender can send data to multiple peers.

@param ctx RIST context @param[out] peer Store the new peer pointer @param config a pointer to the struct rist_peer_config, which contains the configuration parameters for the peer endpoint. @return 0 on success, -1 in case of error.