public interface SessionLayer
extends java.lang.AutoCloseable
HdlcLayer
,
WrapperLayer
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
send(byte[] tSdu,
int off,
int len)
Writes
len bytes from the specified byte array starting at offset off to this output
stream. |
void |
startListening(org.openmuc.jdlms.internal.sessionlayer.SessionLayerListener eventListener)
Function to start the connection.
|
void startListening(org.openmuc.jdlms.internal.sessionlayer.SessionLayerListener eventListener) throws java.io.IOException
eventListener
- the listener.java.io.IOException
- if an error occurs opening the connection to the remote meter.void send(byte[] tSdu, int off, int len) throws java.io.IOException
len
bytes from the specified byte array starting at offset off
to this output
stream.tSdu
- the data.off
- the start offset in the data.len
- the number of bytes to write.java.io.IOException
- if an I/O error occurs. In particular, an IOException is thrown if the output stream is closed.void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
java.io.IOException