| | |
| | | private final InputStream plainInput; |
| | | private final OutputStream plainOutput; |
| | | private final byte[] rcvLengthBuf = new byte[8]; |
| | | private final String readableRemoteAddress; |
| | | private final String remoteAddress; |
| | | |
| | | /** |
| | | * The time the last message published to this session. |
| | |
| | | this.plainOutput = plainSocket.getOutputStream(); |
| | | this.input = secureSocket.getInputStream(); |
| | | this.output = secureSocket.getOutputStream(); |
| | | this.readableRemoteAddress = plainSocket.getRemoteSocketAddress() |
| | | .toString(); |
| | | this.remoteAddress = plainSocket.getInetAddress() |
| | | .getHostAddress(); |
| | | } |
| | | |
| | | |
| | |
| | | @Override |
| | | public String getReadableRemoteAddress() |
| | | { |
| | | return plainSocket.getRemoteSocketAddress().toString(); |
| | | return readableRemoteAddress; |
| | | } |
| | | |
| | | |
| | |
| | | @Override |
| | | public String getRemoteAddress() |
| | | { |
| | | return plainSocket.getInetAddress().getHostAddress(); |
| | | return remoteAddress; |
| | | } |
| | | |
| | | |