316 |
{ |
{ |
317 |
SecurityManager sm = System.getSecurityManager(); |
SecurityManager sm = System.getSecurityManager(); |
318 |
if (sm != null) |
if (sm != null) |
319 |
sm.checkListen(impl.getLocalPort()); |
sm.checkAccept(impl.getInetAddress().getHostAddress(), |
320 |
|
impl.getLocalPort()); |
321 |
|
|
322 |
Socket socket = new Socket(); |
Socket socket = new Socket(); |
323 |
|
|
370 |
|
|
371 |
impl.accept(socket.impl); |
impl.accept(socket.impl); |
372 |
socket.implCreated = true; |
socket.implCreated = true; |
373 |
|
socket.bound = true; |
374 |
} |
} |
375 |
|
|
376 |
/** |
/** |