org.openiec61850.jmms.iso.acse
Class AcseAssociation
java.lang.Object
org.openiec61850.jmms.iso.acse.AcseAssociation
public class AcseAssociation
- extends java.lang.Object
Method Summary |
void |
accept(java.nio.ByteBuffer payload)
A server that got an Association Request Indication may use this function
to accept the association. |
void |
close()
|
void |
disconnect()
|
java.nio.ByteBuffer |
getAssociateResponseAPDU()
|
protected java.nio.ByteBuffer |
listenForCN()
|
java.nio.ByteBuffer |
receive()
|
void |
send(java.nio.ByteBuffer payload)
|
protected void |
startAssociation(java.nio.ByteBuffer payload,
java.net.InetAddress address,
int port,
byte[] pSelRemote,
ClientTSAP tSAP)
Starts an Application Association by sending an association request and
waiting for an association accept message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AcseAssociation
protected AcseAssociation(TConnection tConnection,
byte[] pSelLocal)
accept
public void accept(java.nio.ByteBuffer payload)
throws java.io.IOException
- A server that got an Association Request Indication may use this function
to accept the association.
- Parameters:
payload
-
- Throws:
java.io.IOException
getAssociateResponseAPDU
public java.nio.ByteBuffer getAssociateResponseAPDU()
startAssociation
protected void startAssociation(java.nio.ByteBuffer payload,
java.net.InetAddress address,
int port,
byte[] pSelRemote,
ClientTSAP tSAP)
throws java.io.IOException
- Starts an Application Association by sending an association request and
waiting for an association accept message
- Parameters:
payload
- payload that can be sent with the association requestport
- address
- tSAP
-
- Throws:
java.io.IOException
send
public void send(java.nio.ByteBuffer payload)
throws java.io.IOException
- Throws:
java.io.IOException
receive
public java.nio.ByteBuffer receive()
throws java.io.IOException
- Throws:
java.io.IOException
disconnect
public void disconnect()
close
public void close()
listenForCN
protected java.nio.ByteBuffer listenForCN()
throws java.io.IOException
- Throws:
java.io.IOException