Function libvnc_sys::rfb::ConnectClientToTcpAddr6WithTimeout

source ·
pub unsafe extern "C" fn ConnectClientToTcpAddr6WithTimeout(
    hostname: *const c_char,
    port: c_int,
    timeout: c_uint
) -> c_int
Expand description

Tries to connect to an IPv4 or IPv6 host using the given timeout value. @param hostname A hostname or IP address @param port Port @param timeout The time in seconds to wait for a connection @return A nonblocking socket or RFB_INVALID_SOCKET if the connection failed