Function libzt::zts_tcp_client[][src]

pub unsafe extern "C" fn zts_tcp_client(
    remote_ipstr: *const c_char,
    remote_port: c_ushort
) -> c_int
Expand description

@brief A convenience function that takes a remote address IP string and creates the appropriate type of socket, and uses it to connect to a remote host.

@param remote_ipstr Remote address string. IPv4 or IPv6 @param remote_port Port to

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