()
| 98 | } |
| 99 | |
| 100 | public @Nullable Socket getSocket() { |
| 101 | SelectableChannel sc = getChannel(); |
| 102 | return sc instanceof SocketChannel ? ((SocketChannel)sc).socket() : null; |
| 103 | } |
| 104 | |
| 105 | public @Nullable SocketAddress getLocalAddress() { // 已经close的情况下返回null |
| 106 | try { |
nothing calls this directly
no test coverage detected