public final class AcseAssociation extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
void |
accept(ByteBuffer payload)
A server that got an Association Request Indication may use this function to accept the
association.
|
void |
close()
Closes the connection simply by closing the socket.
|
void |
disconnect()
Disconnects by sending a disconnect request at the Transport Layer and then closing the socket.
|
ByteBuffer |
getAssociateResponseAPdu() |
int |
getMessageTimeout() |
boolean |
getSocketIsbind() |
boolean |
getSocketIsConnected() |
boolean |
getSocketIsInputShutdown() |
boolean |
getSocketIsOpen() |
boolean |
getSocketIsOutputShutdown() |
static String |
getSPDUTypeString(byte spduType) |
byte[] |
receive(ByteBuffer pduBuffer)
Listens for a new PDU and writes it into the given buffer.
|
void |
send(ByteBuffer payload) |
void |
setMessageTimeout(int i) |
boolean |
testConnected() |
public static String getSPDUTypeString(byte spduType)
public void accept(ByteBuffer payload) throws IOException
payload - the payload to send with the accept messageIOException - if an error occures accepting the associationpublic ByteBuffer getAssociateResponseAPdu()
public void send(ByteBuffer payload) throws IOException
IOExceptionpublic byte[] receive(ByteBuffer pduBuffer) throws DecodingException, IOException, TimeoutException
pduBuffer - buffer to write the received pdu intoDecodingException - if a decoding error occursIOException - if a non recoverable error occurs. Afterwards the association should be
closed by the userTimeoutException - if a timeout occurspublic void disconnect()
public void close()
public int getMessageTimeout()
public void setMessageTimeout(int i)
public boolean getSocketIsOpen()
public boolean getSocketIsConnected()
public boolean getSocketIsInputShutdown()
public boolean getSocketIsOutputShutdown()
public boolean getSocketIsbind()
public boolean testConnected()
Copyright © 2025. All rights reserved.