public final class ServerAcseSap extends java.lang.Object implements TConnectionListener
Modifier and Type | Field and Description |
---|---|
byte[] |
pSelLocal |
ServerTSap |
serverTSap |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
public ServerTSap serverTSap
public byte[] pSelLocal
public ServerAcseSap(int port, int backlog, java.net.InetAddress bindAddr, AcseAssociationListener associationListener)
port
- the local port listen onbacklog
- the backlogbindAddr
- the InetAddress to bind toassociationListener
- 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.public ServerAcseSap(int port, int backlog, java.net.InetAddress bindAddr, AcseAssociationListener associationListener, javax.net.ServerSocketFactory serverSocketFactory)
port
- the local port listen onbacklog
- the backlogbindAddr
- the InetAddress to bind toassociationListener
- 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.serverSocketFactory
- the server socket factory to create the socketpublic void startListening() throws java.io.IOException
java.io.IOException
- if an error occures starting to listenpublic void stopListening()
public void serverStoppedListeningIndication(java.io.IOException e)
serverStoppedListeningIndication
in interface TConnectionListener
e
- The IOException caught form ServerSocket.accept()public void connectionIndication(TConnection tConnection)
connectionIndication
in interface TConnectionListener