public void connect(InetAddress host) throws IOException { connect(host, defaultPort); }
public void connect(String hostname) throws IOException { connect(hostname, defaultPort); }
/** * Connect to a host via a proxy. * @param host The host address to connect to. * @param proxy The proxy to connect via. * @deprecated This method will be removed after v0.12.0. If you want to connect via a proxy, you can do this by injecting a {@link javax.net.SocketFactory} * into the SocketClient. The SocketFactory should create sockets using the {@link java.net.Socket#Socket(java.net.Proxy)} constructor. */ @Deprecated public void connect(InetAddress host, Proxy proxy) throws IOException { connect(host, defaultPort, proxy); }
/** * Connect to a host via a proxy. * @param hostname The host name to connect to. * @param proxy The proxy to connect via. * @deprecated This method will be removed after v0.12.0. If you want to connect via a proxy, you can do this by injecting a {@link javax.net.SocketFactory} * into the SocketClient. The SocketFactory should create sockets using the {@link java.net.Socket#Socket(java.net.Proxy)} constructor. */ @Deprecated public void connect(String hostname, Proxy proxy) throws IOException { connect(hostname, defaultPort, proxy); }
public void connect(String hostname, int port) throws IOException { if (hostname == null) { connect(InetAddress.getByName(null), port); } else { this.hostname = hostname; socket = socketFactory.createSocket(); socket.connect(new InetSocketAddress(hostname, port), connectTimeout); onConnect(); } }
public void connect(String hostname, int port, InetAddress localAddr, int localPort) throws IOException { if (hostname == null) { connect(InetAddress.getByName(null), port, localAddr, localPort); } else { this.hostname = hostname; socket = socketFactory.createSocket(); socket.bind(new InetSocketAddress(localAddr, localPort)); socket.connect(new InetSocketAddress(hostname, port), connectTimeout); onConnect(); } }
public void connect(String hostname) throws IOException { connect(hostname, defaultPort); }
public void connect(String hostname) throws IOException { connect(hostname, defaultPort); }
public void connect(InetAddress host) throws IOException { connect(host, defaultPort); }
public void connect(InetAddress host) throws IOException { connect(host, defaultPort); }
public void connect(String hostname, int port) throws IOException { this.hostname = hostname; connect(InetAddress.getByName(hostname), port); }
public void connect(String hostname, int port, InetAddress localAddr, int localPort) throws IOException { this.hostname = hostname; connect(InetAddress.getByName(hostname), port, localAddr, localPort); }
/** * Connect to a host via a proxy. * @param hostname The host name to connect to. * @param proxy The proxy to connect via. * @deprecated This method will be removed after v0.12.0. If you want to connect via a proxy, you can do this by injecting a {@link javax.net.SocketFactory} * into the SocketClient. The SocketFactory should create sockets using the {@link java.net.Socket#Socket(java.net.Proxy)} constructor. */ @Deprecated public void connect(String hostname, Proxy proxy) throws IOException { connect(hostname, defaultPort, proxy); }
/** * Connect to a host via a proxy. * @param host The host address to connect to. * @param proxy The proxy to connect via. * @deprecated This method will be removed after v0.12.0. If you want to connect via a proxy, you can do this by injecting a {@link javax.net.SocketFactory} * into the SocketClient. The SocketFactory should create sockets using the {@link java.net.Socket#Socket(java.net.Proxy)} constructor. */ @Deprecated public void connect(InetAddress host, Proxy proxy) throws IOException { connect(host, defaultPort, proxy); }
public void connect(String hostname, int port, InetAddress localAddr, int localPort) throws IOException { if (hostname == null) { connect(InetAddress.getByName(null), port, localAddr, localPort); } else { this.hostname = hostname; socket = socketFactory.createSocket(); socket.bind(new InetSocketAddress(localAddr, localPort)); socket.connect(new InetSocketAddress(hostname, port), connectTimeout); onConnect(); } }
public void connect(String hostname, int port) throws IOException { if (hostname == null) { connect(InetAddress.getByName(null), port); } else { this.hostname = hostname; socket = socketFactory.createSocket(); socket.connect(new InetSocketAddress(hostname, port), connectTimeout); onConnect(); } }