|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openiec61850.ServerSAP
public class ServerSAP
| Constructor Summary | |
|---|---|
ServerSAP()
|
|
ServerSAP(int port,
int backlog,
java.net.InetAddress bindAddr,
AccessPoint accessPoint,
javax.net.ServerSocketFactory serverSocketFactory,
ServerStopListener sapStopListener)
Create an MMSServerSAP with a ServerSocketFactory. |
|
ServerSAP(int port,
int backlog,
java.net.InetAddress bindAddr,
AccessPoint accessPoint,
ServerStopListener sapStopListener)
Create a simple MMSServerSAP. |
|
| Method Summary | |
|---|---|
void |
connectionIndication(org.openiec61850.jmms.iso.acse.AcseAssociation acseAssociation,
java.nio.ByteBuffer psdu)
|
void |
init(AccessPoint accessPoint,
ServerStopListener 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 ServerSAP(int port,
int backlog,
java.net.InetAddress bindAddr,
AccessPoint accessPoint,
javax.net.ServerSocketFactory serverSocketFactory,
ServerStopListener sapStopListener)
port - local portbacklog - when 0 default value is usedbindAddr - local ip address to bind to, pass null to bind to allaccessPoint - the associated AccessPoint (implementing ServerACSI)serverSocketFactory - the factory class to generate the ServerSocketpublic ServerSAP()
public ServerSAP(int port,
int backlog,
java.net.InetAddress bindAddr,
AccessPoint accessPoint,
ServerStopListener sapStopListener)
port - local portbacklog - when 0 default value is usedbindAddr - local ip address to bind to, pass null to bind to allaccessPoint - the associated AccessPoint (implementing ServerACSI)| Method Detail |
|---|
public void init(AccessPoint accessPoint,
ServerStopListener sapStopListener,
java.util.Properties properties,
java.lang.String sapPropName)
throws ConfigurationException
ConfigurationExceptionpublic 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
java.io.IOExceptionpublic void stopListening()
public void connectionIndication(org.openiec61850.jmms.iso.acse.AcseAssociation acseAssociation,
java.nio.ByteBuffer psdu)
connectionIndication in interface org.openiec61850.jmms.iso.acse.AcseAssociationListenerpublic void serverStoppedListeningIndication(java.io.IOException e)
serverStoppedListeningIndication in interface org.openiec61850.jmms.iso.acse.AcseAssociationListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||