Function cassandra_cpp_sys::cass_cluster_set_contact_points [] [src]

pub unsafe extern "C" fn cass_cluster_set_contact_points(
    cluster: *mut CassCluster,
    contact_points: *const c_char
) -> CassError

Sets/Appends contact points. This MUST be set. The first call sets the contact points and any subsequent calls appends additional contact points. Passing an empty string will clear the contact points. White space is striped from the contact points.

Examples: "127.0.0.1" "127.0.0.1,127.0.0.2", "server1.domain.com"

@public @memberof CassCluster

@param[in] cluster @param[in] contact_points A comma delimited list of addresses or names. An empty string will clear the contact points. The string is copied into the cluster configuration; the memory pointed to by this parameter can be freed after this call. @return CASS_OK if successful, otherwise an error occurred.