Learn how to evaluate and integrate the VNC SDK

We're here if you need help.

DirectTcpConnector

public final class DirectTcpConnector

Connector used to make outgoing TCP connections

Constructor Summary

  • DirectTcpConnector()

    Creates a new TCP Connector which is used to make outgoing connections to TCP listeners.

Method Summary

Modifier and Type Method and Description
void

connect(String hostOrIpAddress, int port, ConnectionHandler connectionHandler)

Begins an outgoing TCP connection to the given hostname or IP address.

void

destroy()

Destroys the TCP Connector.

void

setProxySettings(boolean systemProxy, String proxyUrl)

Set proxy server settings for this TCP Connector.

Constructors

public DirectTcpConnector() throws Library.VncException

Creates a new TCP Connector which is used to make outgoing connections to TCP listeners.

For more information, see vnc_DirectTcpConnector_create().

Methods

public void connect(String hostOrIpAddress, int port, ConnectionHandler connectionHandler) throws Library.VncException

Begins an outgoing TCP connection to the given hostname or IP address.

For more information, see vnc_DirectTcpConnector_connect().

public void destroy()

Destroys the TCP Connector.

For more information, see vnc_DirectTcpConnector_destroy().

public void setProxySettings(boolean systemProxy, String proxyUrl) throws Library.VncException

Set proxy server settings for this TCP Connector.

For more information, see vnc_DirectTcpConnector_setProxySettings().

×