/** * Stop listing on the port. Stops the server thread. */ public void stopListening() { if (serverThread != null) { serverThread.stopServer(); } serverThread = null; started = false; }
/** * Disconnects by sending a disconnect request at the Transport Layer and then closing the socket. */ public void disconnect() { connected = false; if (tConnection != null) { tConnection.disconnect(); } }
/** * Use this constructor to create a client ACSE Service Access Point (SAP) that will start connections to remote * ACSE SAPs. Once constructed the AcseSAP contains a public TSAP that can be accessed to set its configuration. */ public ClientAcseSap() { tSap = new ClientTSap(); }
/** * Closes the connection simply by closing the socket. */ public void close() { connected = false; if (tConnection != null) { tConnection.close(); } }
public void stopListening() { serverTSap.stopListening(); }
/** * 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); }
public int getMessageTimeout() { return tConnection.getMessageTimeout(); }
/** * Sets the message fragment timeout. This is the timeout that the socket timeout is set to after the first byte of * a message has been received. If such a timeout is thrown, the association/socket is closed. * * @param timeout * the message fragment timeout in milliseconds. The default is 60000. */ public void setMessageFragmentTimeout(int timeout) { acseSap.serverTSap.setMessageFragmentTimeout(timeout); }
/** * Use this constructor to create a client ACSE Service Access Point (SAP) that will start connections to remote * ACSE SAPs. Once constructed the AcseSAP contains a public TSAP that can be accessed to set its configuration. */ public ClientAcseSap() { tSap = new ClientTSap(); }
/** * Disconnects by sending a disconnect request at the Transport Layer and then closing the socket. */ public void disconnect() { connected = false; if (tConnection != null) { tConnection.disconnect(); } }
/** * Closes the connection simply by closing the socket. */ public void close() { connected = false; if (tConnection != null) { tConnection.close(); } }
public void stopListening() { serverTSap.stopListening(); }
/** * Stop listing on the port. Stops the server thread. */ public void stopListening() { if (serverThread != null) { serverThread.stopServer(); } serverThread = null; started = false; }
/** * 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); }
/** * Sets the message fragment timeout. This is the timeout that the socket timeout is set to after the first byte of * a message has been received. If such a timeout is thrown, the association/socket is closed. * * @param timeout * the message fragment timeout in milliseconds. The default is 60000. */ public void setMessageFragmentTimeout(int timeout) { acseSap.serverTSap.setMessageFragmentTimeout(timeout); }
/** * Use this constructor to create a client ACSE Service Access Point (SAP) that will start connections to remote * ACSE SAPs. Once constructed the AcseSAP contains a public TSAP that can be accessed to set its configuration. */ public ClientAcseSap() { tSap = new ClientTSap(); }
/** * Disconnects by sending a disconnect request at the Transport Layer and then closing the socket. */ public void disconnect() { connected = false; if (tConnection != null) { tConnection.disconnect(); } }
/** * Closes the connection simply by closing the socket. */ public void close() { connected = false; if (tConnection != null) { tConnection.close(); } }
/** * Stop listing on the port. Stops the server thread. */ public void stopListening() { if (serverThread != null) { serverThread.stopServer(); } serverThread = null; started = false; }
public ClientAcseSap(SocketFactory socketFactory) { tSap = new ClientTSap(socketFactory); }