| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2012 ForgeRock AS |
| | | * Portions Copyright 2011-2013 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.protocol; |
| | | |
| | |
| | | private final byte[] rcvLengthBuf = new byte[8]; |
| | | private final String readableRemoteAddress; |
| | | private final String remoteAddress; |
| | | private final String localUrl; |
| | | |
| | | /** |
| | | * The time the last message published to this session. |
| | |
| | | this.output = secureSocket.getOutputStream(); |
| | | this.readableRemoteAddress = plainSocket.getRemoteSocketAddress() |
| | | .toString(); |
| | | this.remoteAddress = plainSocket.getInetAddress() |
| | | .getHostAddress(); |
| | | this.remoteAddress = plainSocket.getInetAddress().getHostAddress(); |
| | | this.localUrl = plainSocket.getLocalAddress().getHostName() + ":" |
| | | + plainSocket.getLocalPort(); |
| | | } |
| | | |
| | | |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public String getLocalUrl() |
| | | { |
| | | return localUrl; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public String getReadableRemoteAddress() |
| | | { |
| | | return readableRemoteAddress; |