@Override public String getHostAddress() { return this.wrappedAssociation.getHostAddress(); }
public void onNewRemoteConnection(Server globalServer, Association association, SCTPServerConnection connection) { logger.debug("New remote connection"); try { final String peerAddress = association.getPeerAddress(); final int peerPort = association.getPeerPort(); final String localAddress = association.getHostAddress(); final int localPort = association.getHostPort(); SCTPServerConnection remoteClientConnection = new SCTPServerConnection(null, InetAddress.getByName(peerAddress), peerPort, InetAddress.getByName(localAddress), localPort, parser, null, this, globalServer, association, connection.getManagement()); notifyListeners(remoteClientConnection); } catch (Exception exc) { logger.error("Error creating new remote connection"); } }
.append(" peerPort=").append(asso.getPeerPort()); if (asso.getAssociationType() == AssociationType.CLIENT) { sb.append(" hostIp=").append(asso.getHostAddress()).append(" hostPort=").append(asso.getHostPort()); } else { sb.append(" server=").append(asso.getServerName());
.append(" peerPort=").append(asso.getPeerPort()); if (asso.getAssociationType() == AssociationType.CLIENT) { sb.append(" hostIp=").append(asso.getHostAddress()).append(" hostPort=").append(asso.getHostPort()); } else { sb.append(" server=").append(asso.getServerName());
if (hostAddress.equals(associationTemp.getHostAddress()) && associationTemp.getHostPort() == hostPort) { throw new Exception(String.format("Already has association=%s with same host address=%s and port=%d", associationTemp.getName(), hostAddress, hostPort));
if (hostAddress.equals(associationTemp.getHostAddress()) && associationTemp.getHostPort() == hostPort) { throw new Exception(String.format("Already has association=%s with same host address=%s and port=%d", associationTemp.getName(), hostAddress, hostPort));
new Object[] { serverAssociation.getHostAddress(), serverAssociation.getHostPort(), serverAssociation.getPeerAddress(), serverAssociation.getPeerPort() }); logger.debug("Server Association Status: Started[{}] Connected[{}] Up[{}] ",