public final class ServerAcseSap extends Object implements TConnectionListener
| 限定符和类型 | 字段和说明 |
|---|---|
byte[] |
pSelLocal |
ServerTSap |
serverTSap |
| 构造器和说明 |
|---|
ServerAcseSap(int port,
int backlog,
InetAddress bindAddr,
AcseAssociationListener associationListener)
Use this constructor to create a server ACSE SAP that listens on a fixed port.
|
ServerAcseSap(int port,
int backlog,
InetAddress bindAddr,
AcseAssociationListener associationListener,
ServerSocketFactory serverSocketFactory)
Use this constructor to create a server ACSE SAP that listens on a fixed port.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connectionIndication(TConnection tConnection)
This function is internal and should not be called by users of this class.
|
void |
serverStoppedListeningIndication(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,
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,
InetAddress bindAddr,
AcseAssociationListener associationListener,
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 IOException
IOException - if an error occures starting to listenpublic void stopListening()
public void serverStoppedListeningIndication(IOException e)
serverStoppedListeningIndication 在接口中 TConnectionListenere - The IOException caught form ServerSocket.accept()public void connectionIndication(TConnection tConnection)
connectionIndication 在接口中 TConnectionListenerCopyright © 2025. All rights reserved.