throws IOException {
if (!channel.isBlocking()) {
throw new IllegalBlockingModeException();
}
if (isConnected()) {
throw new AlreadyConnectedException();
}
super.connect(remoteAddr, timeout);
channel.localAddress = networkSystem.getSocketLocalAddress(
channel.fd, false);
if (super.isConnected()) {