tuwien.auto.eicl.struct.eibnetip

Class Connectionstate_Response


public class Connectionstate_Response
extends java.lang.Object

This class represents an EIBnet/IP Connectionstate Response. This message is sent in response to an Connectionstate Request. The status byte informs about the request success.
See Also:
Connectionstate_Request, CEMI_Connection

Constructor Summary

Connectionstate_Response(byte[] _Buffer)
Creates a new Connectionstate Response by parsing a byte array.

Method Summary

short
getChannelid()
Returns the encapsulated channel identifier
short
getStatus()
Get the messages errorcode / status.
String
getStatusString()
Get a human readable representation of the statusbyte.

Constructor Details

Connectionstate_Response

public Connectionstate_Response(byte[] _Buffer)
Creates a new Connectionstate Response by parsing a byte array. Pass all bytes after the EIBnet/IP header to this constructor.
Parameters:
_Buffer - The byte array starting after the EIBnet/IP header.

Method Details

getChannelid

public short getChannelid()
Returns the encapsulated channel identifier
Returns:
The connection channel identifier.

getStatus

public short getStatus()
Get the messages errorcode / status.
Returns:
the statusbyte

getStatusString

public String getStatusString()
Get a human readable representation of the statusbyte.
Returns:
The status in a string representation.