84 |
*/ |
*/ |
85 |
private boolean implCreated; |
private boolean implCreated; |
86 |
|
|
87 |
private boolean inputShutdown = false; |
/** |
88 |
private boolean outputShutdown = false; |
* True if the socket is bound. |
89 |
|
*/ |
90 |
|
private boolean bound; |
91 |
|
|
92 |
|
/** |
93 |
|
* True if input is shutdown. |
94 |
|
*/ |
95 |
|
private boolean inputShutdown; |
96 |
|
|
97 |
|
/** |
98 |
|
* True if output is shutdown. |
99 |
|
*/ |
100 |
|
private boolean outputShutdown; |
101 |
|
|
102 |
/** |
/** |
103 |
* Initializes a new instance of <code>Socket</code> object without |
* Initializes a new instance of <code>Socket</code> object without |
357 |
try |
try |
358 |
{ |
{ |
359 |
getImpl().bind (tmp.getAddress(), tmp.getPort()); |
getImpl().bind (tmp.getAddress(), tmp.getPort()); |
360 |
|
bound = true; |
361 |
} |
} |
362 |
catch (IOException exception) |
catch (IOException exception) |
363 |
{ |
{ |
995 |
getChannel().close(); |
getChannel().close(); |
996 |
|
|
997 |
impl = null; |
impl = null; |
998 |
|
bound = false; |
999 |
} |
} |
1000 |
|
|
1001 |
/** |
/** |
1196 |
*/ |
*/ |
1197 |
public boolean isBound () |
public boolean isBound () |
1198 |
{ |
{ |
1199 |
return getLocalAddress () != null; |
return bound; |
1200 |
} |
} |
1201 |
|
|
1202 |
/** |
/** |