74 |
private SocketImpl impl; |
private SocketImpl impl; |
75 |
|
|
76 |
private boolean closed = false; |
private boolean closed = false; |
77 |
|
|
78 |
|
/* |
79 |
|
* This is only used by java.nio. |
80 |
|
*/ |
81 |
|
// FIXME: Workaround a bug in gcj. |
82 |
|
//ServerSocket (PlainSocketImpl impl) throws IOException |
83 |
|
ServerSocket (SocketImpl impl) throws IOException |
84 |
|
{ |
85 |
|
this.impl = impl; |
86 |
|
this.impl.create (true); |
87 |
|
} |
88 |
|
|
89 |
/** |
/** |
90 |
* Constructor that simply sets the implementation. |
* Constructor that simply sets the implementation. |
329 |
*/ |
*/ |
330 |
public void close () throws IOException |
public void close () throws IOException |
331 |
{ |
{ |
332 |
if (impl != null) |
impl.close (); |
|
impl.close (); |
|
333 |
|
|
334 |
if (getChannel() != null) |
if (getChannel() != null) |
335 |
getChannel().close (); |
getChannel().close (); |