|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openiec61850.scsm.mms.server.MMSServerSAP
public class MMSServerSAP
Constructor Summary | |
---|---|
MMSServerSAP()
|
|
MMSServerSAP(int port,
int backlog,
java.net.InetAddress bindAddr,
ServerACSI serverACSI,
SAPStopListener sapStopListener)
Create a simple MMSServerSAP. |
|
MMSServerSAP(int port,
int backlog,
java.net.InetAddress bindAddr,
ServerACSI serverACSI,
javax.net.ServerSocketFactory serverSocketFactory,
SAPStopListener sapStopListener)
Create an MMSServerSAP with a ServerSocketFactory. |
Method Summary | |
---|---|
void |
connectionIndication(AcseAssociation pConnection,
java.nio.ByteBuffer psdu)
|
void |
init(ServerACSI serverACSI,
SAPStopListener sapStopListener,
java.util.Properties properties,
java.lang.String sapPropName)
|
void |
serverStoppedListeningIndication(java.io.IOException e)
|
void |
setMaxConnections(int maxConnections)
Set the maximum number of connections that are allowed in parallel by the Server SAP. |
void |
setMaxTPDUSizeParam(int maxTPDUSizeParam)
Set the maxTPDUSize. |
void |
setMessageFragmentTimeout(int messageFragmentTimeout)
Set the TConnection timeout for receiving data once the beginning of a message has been received. |
void |
setMessageTimeout(int messageTimeout)
Set the TConnection timeout for waiting for the first byte of a new message. |
void |
startListening()
|
void |
stopListening()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MMSServerSAP(int port, int backlog, java.net.InetAddress bindAddr, ServerACSI serverACSI, javax.net.ServerSocketFactory serverSocketFactory, SAPStopListener sapStopListener)
port
- local portbacklog
- when 0 default value is usedbindAddr
- local ip address to bind to, pass null to bind to allserverACSI
- the associated AccessPoint (implementing ServerACSI)serverSocketFactory
- the factory class to generate the ServerSocketpublic MMSServerSAP()
public MMSServerSAP(int port, int backlog, java.net.InetAddress bindAddr, ServerACSI serverACSI, SAPStopListener sapStopListener)
port
- local portbacklog
- when 0 default value is usedbindAddr
- local ip address to bind to, pass null to bind to allserverACSI
- the associated AccessPoint (implementing ServerACSI)Method Detail |
---|
public void init(ServerACSI serverACSI, SAPStopListener sapStopListener, java.util.Properties properties, java.lang.String sapPropName) throws ConfigurationException
init
in interface SCSMServerSAP
ConfigurationException
public void setMaxTPDUSizeParam(int maxTPDUSizeParam)
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
connectingpublic void setMaxConnections(int maxConnections)
maxConnections
- the number of connections allowed (default is 100)public void setMessageTimeout(int messageTimeout) throws java.net.SocketException
messageTimeout
- in milliseconds
java.net.SocketException
public void setMessageFragmentTimeout(int messageFragmentTimeout) throws java.net.SocketException
messageFragmentTimeout
- in milliseconds
java.net.SocketException
public void startListening() throws java.io.IOException
startListening
in interface SCSMServerSAP
java.io.IOException
public void stopListening()
stopListening
in interface SCSMServerSAP
public void connectionIndication(AcseAssociation pConnection, java.nio.ByteBuffer psdu)
connectionIndication
in interface AcseAssociationListener
public void serverStoppedListeningIndication(java.io.IOException e)
serverStoppedListeningIndication
in interface AcseAssociationListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |