168 |
impl.create(true); |
impl.create(true); |
169 |
|
|
170 |
// bind to address/port |
// bind to address/port |
171 |
try { |
try |
172 |
impl.bind(bindAddr, port); |
{ |
173 |
} catch (IOException exception) { |
impl.bind(bindAddr, port); |
174 |
impl.close(); |
} |
175 |
throw exception; |
catch (IOException exception) |
176 |
} catch (RuntimeException exception) { |
{ |
177 |
impl.close(); |
impl.close(); |
178 |
throw exception; |
throw exception; |
179 |
} catch (Error error) { |
} |
180 |
impl.close(); |
catch (RuntimeException exception) |
181 |
throw error; |
{ |
182 |
} |
impl.close(); |
183 |
|
throw exception; |
184 |
|
} |
185 |
|
catch (Error error) |
186 |
|
{ |
187 |
|
impl.close(); |
188 |
|
throw error; |
189 |
|
} |
190 |
|
|
191 |
// listen on socket |
// listen on socket |
192 |
try { |
try |
193 |
impl.listen(backlog); |
{ |
194 |
} catch (IOException exception) { |
impl.listen(backlog); |
195 |
impl.close(); |
} |
196 |
throw exception; |
catch (IOException exception) |
197 |
} catch (RuntimeException exception) { |
{ |
198 |
impl.close(); |
impl.close(); |
199 |
throw exception; |
throw exception; |
200 |
} catch (Error error) { |
} |
201 |
impl.close(); |
catch (RuntimeException exception) |
202 |
throw error; |
{ |
203 |
} |
impl.close(); |
204 |
|
throw exception; |
205 |
|
} |
206 |
|
catch (Error error) |
207 |
|
{ |
208 |
|
impl.close(); |
209 |
|
throw error; |
210 |
|
} |
211 |
} |
} |
212 |
|
|
213 |
/** |
/** |