Function libzt::zts_udp_client[][src]

pub unsafe extern "C" fn zts_udp_client(remote_ipstr: *const c_char) -> c_int
Expand description

@brief This function doesn’t really do anything other than be a namespace counterpart to zts_udp_server. All this function does is create a ZTS_SOCK_DGRAM socket and return its file descriptor.

@param remote_ipstr Remote address string. IPv4 or IPv6

@return New file descriptor if successful, ZTS_ERR_SERVICE if the node experiences a problem, ZTS_ERR_ARG if invalid argument. Sets zts_errno