(SocketAddress address)
| 58 | } |
| 59 | |
| 60 | public boolean connect(SocketAddress address) throws IOException { |
| 61 | InetSocketAddress a; |
| 62 | try { |
| 63 | a = (InetSocketAddress) address; |
| 64 | } catch (ClassCastException e) { |
| 65 | throw new UnsupportedAddressTypeException(); |
| 66 | } |
| 67 | doConnect(socket, a.getAddress().getRawAddress(), a.getPort()); |
| 68 | configureBlocking(blocking); |
| 69 | return connected; |
| 70 | } |
| 71 | |
| 72 | public boolean finishConnect() throws IOException { |
| 73 | if (! connected) { |