()
| 159 | } |
| 160 | |
| 161 | public boolean sameMachine() throws Exception { |
| 162 | try { |
| 163 | SocketAddress peeraddr = ((SocketDescriptor)getFd()).getRemoteAddress(); |
| 164 | SocketAddress myaddr = ((SocketDescriptor)getFd()).getLocalAddress(); |
| 165 | return myaddr.equals(peeraddr); |
| 166 | } catch (IOException e) { |
| 167 | throw new Exception(e.getMessage()); |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | public void shutdown() throws Exception { |
| 172 | super.shutdown(); |
nothing calls this directly
no test coverage detected