tuwien.auto.eicl.struct.eibnetip
Class Disconnect_Response
java.lang.Object
tuwien.auto.eicl.struct.eibnetip.Disconnect_Response
public class Disconnect_Response
extends java.lang.Object
A EIBnet/IP disconnect response is sent in answer to a disconnect request.
This class holds all necessary data, and is able to parse or create a new
disconnect response.
Disconnect_Response(byte[] buffer) - Use this constructor to parse a disconnect response from a byte array.
|
Disconnect_Response(short _Channelid, short _Status) - Use this constructor to create a new disconnect response.
|
short | getChannelid() - This method returns the channel identifier byte.
|
short | getStatus() - Use this method to get the message status(error code) as byte.
|
String | getStatusString() - This method returns a human readable status message.
|
byte[] | toByteArray() - Get the message as byte array.
|
Disconnect_Response
public Disconnect_Response(byte[] buffer)
Use this constructor to parse a disconnect response from a byte array.
The data fields can then be accessed through the get methods. Pass
everything after the EIBnet/IP header to this constructor.
Disconnect_Response
public Disconnect_Response(short _Channelid,
short _Status)
Use this constructor to create a new disconnect response.
_Channelid
- The channel ID of the connection being closed_Status
- The error code, indicating whether the connection was closed
successfully.
getChannelid
public short getChannelid()
This method returns the channel identifier byte.
- The channelid of the connection being closed.
getStatus
public short getStatus()
Use this method to get the message status(error code) as byte.
getStatusString
public String getStatusString()
This method returns a human readable status message.
toByteArray
public byte[] toByteArray()
Get the message as byte array.
- The byte array representation.