/** * Set the maxTPDUSize. The default maxTPduSize is 65531 (see RFC 1006). * * @param maxTPduSizeParam * The maximum length is equal to 2^(maxTPduSizeParam) octets. Note that the actual TSDU size that can be * transfered is equal to TPduSize-3. Default is 65531 octets (see RFC 1006), 7 <= maxTPduSizeParam * <= 16, needs to be set before listening or connecting */ public void setMaxTPduSizeParameter(int maxTPduSizeParam) { acseSap.tSap.setMaxTPDUSizeParam(maxTPduSizeParam); }
/** * Set the maxTPDUSize. The default maxTPduSize is 65531 (see RFC 1006). * * @param maxTPduSizeParam * The maximum length is equal to 2^(maxTPduSizeParam) octets. Note that the actual TSDU size that can be * transfered is equal to TPduSize-3. Default is 65531 octets (see RFC 1006), 7 <= maxTPduSizeParam * <= 16, needs to be set before listening or connecting */ public void setMaxTPduSizeParameter(int maxTPduSizeParam) { acseSap.tSap.setMaxTPDUSizeParam(maxTPduSizeParam); }
/** * Use this constructor to create a default client SAP. */ public ClientSap() { acseSap = new ClientAcseSap(); acseSap.tSap.tSelLocal = DEFAULT_TSEL_LOCAL; acseSap.tSap.tSelRemote = DEFAULT_TSEL_REMOTE; acseSap.tSap.setMaxTPDUSizeParam(DEFAUTL_TPDU_SIZE_PARAMETER); }
/** * Use this constructor to create a default client SAP. */ public ClientSap() { acseSap = new ClientAcseSap(); acseSap.tSap.tSelLocal = DEFAULT_TSEL_LOCAL; acseSap.tSap.tSelRemote = DEFAULT_TSEL_REMOTE; acseSap.tSap.setMaxTPDUSizeParam(DEFAUTL_TPDU_SIZE_PARAMETER); }
/** * Use this constructor to create a client SAP that uses the given <code>SocketFactory</code> to connect to servers. * You could pass an SSLSocketFactory to enable SSL. * * @param socketFactory * the socket factory to construct the socket */ public ClientSap(SocketFactory socketFactory) { acseSap = new ClientAcseSap(socketFactory); acseSap.tSap.tSelLocal = DEFAULT_TSEL_LOCAL; acseSap.tSap.tSelRemote = DEFAULT_TSEL_REMOTE; acseSap.tSap.setMaxTPDUSizeParam(DEFAUTL_TPDU_SIZE_PARAMETER); }
/** * Use this constructor to create a client SAP that uses the given <code>SocketFactory</code> to connect to servers. * You could pass an SSLSocketFactory to enable SSL. * * @param socketFactory * the socket factory to construct the socket */ public ClientSap(SocketFactory socketFactory) { acseSap = new ClientAcseSap(socketFactory); acseSap.tSap.tSelLocal = DEFAULT_TSEL_LOCAL; acseSap.tSap.tSelRemote = DEFAULT_TSEL_REMOTE; acseSap.tSap.setMaxTPDUSizeParam(DEFAUTL_TPDU_SIZE_PARAMETER); }
tSAP.setMaxTPDUSizeParam(7); TConnection tConnection = null;