181 |
impl = new PlainDatagramSocketImpl(); |
impl = new PlainDatagramSocketImpl(); |
182 |
impl.create(); |
impl.create(); |
183 |
|
|
184 |
if (address != null) |
if (address != null) { |
185 |
{ |
try { |
186 |
local_addr = tmp.getAddress (); |
local_addr = tmp.getAddress (); |
187 |
impl.bind(tmp.getPort (), tmp.getAddress ()); |
impl.bind(tmp.getPort (), tmp.getAddress ()); |
188 |
|
} catch (SocketException exception) { |
189 |
|
impl.close(); |
190 |
|
throw exception; |
191 |
|
} catch (RuntimeException exception) { |
192 |
|
impl.close(); |
193 |
|
throw exception; |
194 |
|
} catch (Error error) { |
195 |
|
impl.close(); |
196 |
|
throw error; |
197 |
} |
} |
198 |
|
} |
199 |
} |
} |
200 |
|
|
201 |
/** |
/** |