167 |
impl = new PlainDatagramSocketImpl(); |
impl = new PlainDatagramSocketImpl(); |
168 |
impl.create(); |
impl.create(); |
169 |
|
|
170 |
if (laddr != null) |
if (laddr == null) |
171 |
|
laddr = InetAddress.ANY_IF; |
172 |
|
|
173 |
|
try |
174 |
{ |
{ |
175 |
try |
localAddr = laddr; |
176 |
{ |
impl.bind (port, laddr); |
177 |
localAddr = laddr; |
} |
178 |
impl.bind(port, laddr); |
catch (SocketException exception) |
179 |
} |
{ |
180 |
catch (SocketException exception) |
impl.close (); |
181 |
{ |
throw exception; |
182 |
impl.close(); |
} |
183 |
throw exception; |
catch (RuntimeException exception) |
184 |
} |
{ |
185 |
catch (RuntimeException exception) |
impl.close (); |
186 |
{ |
throw exception; |
187 |
impl.close(); |
} |
188 |
throw exception; |
catch (Error error) |
189 |
} |
{ |
190 |
catch (Error error) |
impl.close (); |
191 |
{ |
throw error; |
|
impl.close(); |
|
|
throw error; |
|
|
} |
|
192 |
} |
} |
193 |
} |
} |
194 |
|
|