org.openiec61850.jmms.iso.acse
Class ServerAcseSAP

java.lang.Object
  extended by org.openiec61850.jmms.iso.acse.ServerAcseSAP
All Implemented Interfaces:
TConnectionListener

public class ServerAcseSAP
extends java.lang.Object
implements TConnectionListener

This class implements the server 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
           
 ServerTSAP serverTSAP
           
 
Constructor Summary
ServerAcseSAP(int port, int backlog, java.net.InetAddress bindAddr, AcseAssociationListener associationListener)
          Use this constructor to create a server ACSE SAP that listens on a fixed port.
ServerAcseSAP(int port, int backlog, java.net.InetAddress bindAddr, AcseAssociationListener associationListener, javax.net.ServerSocketFactory serverSocketFactory)
          Use this constructor to create a server ACSE SAP that listens on a fixed port.
 
Method Summary
 void connectionIndication(TConnection tConnection)
          This function is internal and should not be called by users of this class.
 void serverStoppedListeningIndication(java.io.IOException e)
          This function is internal and should not be called by users of this class.
 void startListening()
          Start listening for incoming connections.
 void stopListening()
          Stop listing on the port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverTSAP

public ServerTSAP serverTSAP

pSelRemote

public byte[] pSelRemote

pSelLocal

public byte[] pSelLocal
Constructor Detail

ServerAcseSAP

public ServerAcseSAP(int port,
                     int backlog,
                     java.net.InetAddress bindAddr,
                     AcseAssociationListener associationListener)
Use this constructor to create a server ACSE SAP that listens on a fixed port.

Parameters:
associationListener - the AssociationListener that will be notified when remote clients have associated. Once constructed the AcseSAP contains a public TSAP that can be accessed to set its configuration.

ServerAcseSAP

public ServerAcseSAP(int port,
                     int backlog,
                     java.net.InetAddress bindAddr,
                     AcseAssociationListener associationListener,
                     javax.net.ServerSocketFactory serverSocketFactory)
Use this constructor to create a server ACSE SAP that listens on a fixed port.

Parameters:
associationListener - the AssociationListener that will be notified when remote clients have associated. Once constructed the AcseSAP contains a public TSAP that can be accessed to set its configuration.
Method Detail

startListening

public void startListening()
                    throws java.io.IOException
Start listening for incoming connections. Only for server SAPs.

Throws:
java.io.IOException

stopListening

public void stopListening()
Stop listing on the port. Only for server SAPs.


serverStoppedListeningIndication

public void serverStoppedListeningIndication(java.io.IOException e)
This function is internal and should not be called by users of this class.

Specified by:
serverStoppedListeningIndication in interface TConnectionListener
Parameters:
e - The IOException caught form ServerSocket.accept()

connectionIndication

public void connectionIndication(TConnection tConnection)
This function is internal and should not be called by users of this class.

Specified by:
connectionIndication in interface TConnectionListener