()
| 12 | String address = "localhost"; |
| 13 | |
| 14 | public void run() { |
| 15 | Object result = null; |
| 16 | |
| 17 | try { |
| 18 | final Socket s = new Socket(address, 12345); |
| 19 | result = s; |
| 20 | } catch (final IOException ioe) { |
| 21 | result = ioe; |
| 22 | } finally { |
| 23 | synchronized (hung) { |
| 24 | hung.remove(address); |
| 25 | hung.notifyAll(); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | synchronized (done) { |
| 30 | done[0] = result; |
| 31 | done.notifyAll(); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | public static final String DOMAINCFG = "Hi"; |
| 36 |