org.openiec61850.jmms.iso.acse
Class ClientAcseSAP

java.lang.Object
  extended by org.openiec61850.jmms.iso.acse.ClientAcseSAP

public class ClientAcseSAP
extends java.lang.Object

This class implements the Service Access Point (SAP) for the Application Control Service Element (ACSE) protocol as defined by ISO 8650 or ITU X.217/X.227. The ACSE provides services for establishing and releasing application-associations. The class also realizes the lower ISO Presentation Layer as defined by ISO 8823/ITU X226 and the ISO Session Layer as defined by 8327/ITU X.225.


Field Summary
 byte[] pSelLocal
           
 byte[] pSelRemote
           
 ClientTSAP tSAP
           
 
Constructor Summary
ClientAcseSAP()
          Use this constructor to create a client ACSE Service Access Point (SAP) that will start connections to remote ACSE SAPs.
 
Method Summary
 AcseAssociation associate(java.net.InetAddress address, int port, java.nio.ByteBuffer apdu)
          Associate to a remote ServerAcseSAP that is listening at the destination address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tSAP

public ClientTSAP tSAP

pSelRemote

public byte[] pSelRemote

pSelLocal

public byte[] pSelLocal
Constructor Detail

ClientAcseSAP

public ClientAcseSAP()
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.

Method Detail

associate

public AcseAssociation associate(java.net.InetAddress address,
                                 int port,
                                 java.nio.ByteBuffer apdu)
                          throws java.io.IOException
Associate to a remote ServerAcseSAP that is listening at the destination address.

Parameters:
address - remote InetAddress
port - remote port
Returns:
the association object
Throws:
java.io.IOException - is thrown if association was unsuccessful.