llcpSocket = getOpenLlcpSocket(new AddressPair(remoteAddress, localAddress));
if (llcpSocket != null) {
log.info("Closing open connection");
closeSocket(llcpSocket);
llcpSocket.onDisconnect();
return new Symmetry();
}
case 0x02: // no service bound
case 0x03: // rejected by service layer
case 0x10: // perm not accept connection at same target point
case 0x11: // perm not accept connection at any target point
if (pendingConnections.containsKey(localAddress)) {
Integer pendingLocalAddress = Integer.valueOf(localAddress);
log.info("Closing pending connection");
PendingConnection pendingConnection = pendingConnections.remove(pendingLocalAddress);
pendingConnection.getServiceAccessPoint().onConnectFailed();
}
return new Symmetry();
case 0x21: // temp not accept connection at same target point
case 0x20: // temp not accept connection at any target point
// TODO add additional timeout for this messages
return new Symmetry();
default:
return new Symmetry();
}
}