ClientAssociation(InetAddress address, int port, InetAddress localAddr, int localPort, String authenticationParameter, ClientAcseSap acseSap, int proposedMaxMmsPduSize, int proposedMaxServOutstandingCalling, int proposedMaxServOutstandingCalled, int proposedDataStructureNestingLevel, byte[] servicesSupportedCalling, int responseTimeout, int messageFragmentTimeout, ClientEventListener reportListener) throws IOException { this.responseTimeout = responseTimeout; acseSap.tSap.setMessageFragmentTimeout(messageFragmentTimeout); acseSap.tSap.setMessageTimeout(responseTimeout); negotiatedMaxPduSize = proposedMaxMmsPduSize; this.reportListener = reportListener; associate(address, port, localAddr, localPort, authenticationParameter, acseSap, proposedMaxMmsPduSize, proposedMaxServOutstandingCalling, proposedMaxServOutstandingCalled, proposedDataStructureNestingLevel, servicesSupportedCalling); acseAssociation.setMessageTimeout(0); clientReceiver = new ClientReceiver(negotiatedMaxPduSize); clientReceiver.start(); }
ClientAssociation(InetAddress address, int port, InetAddress localAddr, int localPort, String authenticationParameter, ClientAcseSap acseSap, int proposedMaxMmsPduSize, int proposedMaxServOutstandingCalling, int proposedMaxServOutstandingCalled, int proposedDataStructureNestingLevel, byte[] servicesSupportedCalling, int responseTimeout, int messageFragmentTimeout, ClientEventListener reportListener) throws IOException { this.responseTimeout = responseTimeout; acseSap.tSap.setMessageFragmentTimeout(messageFragmentTimeout); acseSap.tSap.setMessageTimeout(responseTimeout); negotiatedMaxPduSize = proposedMaxMmsPduSize; this.reportListener = reportListener; associate(address, port, localAddr, localPort, authenticationParameter, acseSap, proposedMaxMmsPduSize, proposedMaxServOutstandingCalling, proposedMaxServOutstandingCalled, proposedDataStructureNestingLevel, servicesSupportedCalling); acseAssociation.setMessageTimeout(0); clientReceiver = new ClientReceiver(negotiatedMaxPduSize); clientReceiver.start(); }