Lines Matching refs:port
134 private Socket connectToHost(String host, int port, SocketAddress localAddress)
143 socket.connect(new InetSocketAddress(hostAddresses[i], port));
153 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException {
154 return connectToHost(host, port, new InetSocketAddress(localHost, localPort));
158 public Socket createSocket(InetAddress address, int port, InetAddress localAddress,
162 socket.connect(new InetSocketAddress(address, port));
167 public Socket createSocket(InetAddress host, int port) throws IOException {
169 socket.connect(new InetSocketAddress(host, port));
174 public Socket createSocket(String host, int port) throws IOException {
175 return connectToHost(host, port, null);