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;
7576777879808182
super(sp); status = SERVER_STATUS_OPEN; fd = new FileDescriptor(); Platform.getNetworkSystem().createStreamSocket(fd, NetUtil.preferIPv4Stack()); impl = new PlainSocketImpl(fd); socket = new ServerSocketAdapter(impl, this); }
858687888990919293
@SuppressWarnings("unused") private ServerSocketChannelImpl() throws IOException { super(SelectorProvider.provider()); status = SERVER_STATUS_OPEN; fd = new FileDescriptor(); impl = new PlainSocketImpl(fd); socket = new ServerSocketAdapter(impl, this); isBound = false; }
76777879808182
* * @see SocketImplFactory */ public Socket() { impl = factory != null ? factory.createSocketImpl() : new PlainSocketImpl(); }
112113114115116117118119
} int port = address.getPort(); checkConnectPermission(host, port); } impl = factory != null ? factory.createSocketImpl() : new PlainSocketImpl(proxy); this.proxy = proxy; }
2091209220932094209520962097
} private class MockSocketImplFactory implements SocketImplFactory { public SocketImpl createSocketImpl() { return new PlainSocketImpl(); }
195196197198199200201202203204205
2060206120622063206420652066
2032203320342035203620372038