public Socket createSocket(InetAddress hostAddr, int port) throws IOException { return this.createSocket(hostAddr, port, null, 0); }
socketFactoryName.equals(TimedSocketFactory.class.getName())) factory = new TimedSocketFactory(serverEnv); return factory;
public Socket createSocket(String host, int port) throws IOException, UnknownHostException { InetAddress hostAddr = InetAddress.getByName(host); return this.createSocket(hostAddr, port, null, 0); } public Socket createSocket(InetAddress hostAddr, int port) throws IOException
public Socket createSocket(String host, int port, InetAddress localAddr, int localPort) throws IOException, UnknownHostException { InetAddress hostAddr = InetAddress.getByName(host); return this.createSocket(hostAddr, port, localAddr, localPort); } public Socket createSocket(InetAddress hostAddr, int port, InetAddress localAddr, int localPort)