if (!(address instanceof InetSocketAddress)) {
throw new IOException("InetSocketAddress expected");
}
final InetSocketAddress sa = (InetSocketAddress) address;
if (sa.isUnresolved()) {
throw new UnresolvedAddressException();
}
if (controlBlock == null) {
bind(InetAddress.getLocalHost(), 0);
}
controlBlock.appConnect(new IPv4Address(sa.getAddress()), sa.getPort());