2056205720582059206020612062
} private class MockSocketImplFactory implements SocketImplFactory { public SocketImpl createSocketImpl() { return new PlainSocketImpl(); }
77787980818283
* @see SocketImplFactory * @see SocketImpl */ public Socket() { impl = factory != null ? factory.createSocketImpl() : new PlainSocketImpl(); }
120121122123124125126127
} int port = address.getPort(); checkConnectPermission(host, port); } impl = factory != null ? factory.createSocketImpl() : new PlainSocketImpl(proxy); this.proxy = proxy; }
196197198199200201202203204205206
if (connectAddress != null) { addr = connectAddress.getAddress(); port = connectAddress.getPort(); } socket = new SocketAdapter( new PlainSocketImpl(fd, localPort, addr, port), this); } catch (SocketException e) { return null; } } return socket;