public class ServerHdlcSessionLayer extends java.lang.Object implements ServerSessionLayer
Constructor and Description |
---|
ServerHdlcSessionLayer(StreamAccessor streamAccessor,
ServerSettings settings) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getClientId() |
int |
getLogicalDeviceId() |
void |
initialize() |
byte[] |
readNextMessage() |
void |
send(byte[] data) |
public ServerHdlcSessionLayer(StreamAccessor streamAccessor, ServerSettings settings)
public void initialize() throws java.io.IOException
initialize
in interface ServerSessionLayer
java.io.IOException
public byte[] readNextMessage() throws java.io.IOException
readNextMessage
in interface ServerSessionLayer
java.io.IOException
public void send(byte[] data) throws java.io.IOException
send
in interface ServerSessionLayer
java.io.IOException
public int getClientId()
getClientId
in interface ServerSessionLayer
public int getLogicalDeviceId()
getLogicalDeviceId
in interface ServerSessionLayer
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface ServerSessionLayer
java.io.IOException