Class ServerWrapperLayer
- java.lang.Object
-
- org.openmuc.jdlms.sessionlayer.server.ServerWrapperLayer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,ServerSessionLayer
public class ServerWrapperLayer extends java.lang.Object implements ServerSessionLayer
-
-
Constructor Summary
Constructors Constructor Description ServerWrapperLayer(StreamAccessor streamAccessor, ServerSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getClientId()
int
getLogicalDeviceId()
void
initialize()
byte[]
readNextMessage()
void
send(byte[] data)
-
-
-
Constructor Detail
-
ServerWrapperLayer
public ServerWrapperLayer(StreamAccessor streamAccessor, ServerSettings settings)
-
-
Method Detail
-
send
public void send(byte[] data) throws java.io.IOException
- Specified by:
send
in interfaceServerSessionLayer
- Throws:
java.io.IOException
-
readNextMessage
public byte[] readNextMessage() throws java.io.IOException
- Specified by:
readNextMessage
in interfaceServerSessionLayer
- Throws:
java.io.IOException
-
getClientId
public int getClientId()
- Specified by:
getClientId
in interfaceServerSessionLayer
-
getLogicalDeviceId
public int getLogicalDeviceId()
- Specified by:
getLogicalDeviceId
in interfaceServerSessionLayer
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceServerSessionLayer
- Throws:
java.io.IOException
-
initialize
public void initialize()
- Specified by:
initialize
in interfaceServerSessionLayer
-
-