pub unsafe extern "C" fn ddsrt_sockaddrfromstr(
af: c_int,
str_: *const c_char,
sa: *mut c_void,
) -> dds_return_tExpand description
@brief Convert a string to a socket address
The socket address ‘sa’ can be any of type: (struct sockaddr_in*, struct sockaddr_in6*, struct sockaddr_storage*) Note that the data is copied into the existing socket address (does not allocate memory).
@param[in] af the address family (AF_INET, AF_INET6) @param[in] str the string input e.g. “192.0.2.0” @param[out] sa the socket address to overwrite @return a DDS_RETCODE (OK, BAD_PARAMETER)
See @ref ddsrt_sockaddrtostr