tuwien.auto.eicl.struct.eibnetip
Class CEMI_Connection_Ack
java.lang.Object
tuwien.auto.eicl.struct.eibnetip.CEMI_Connection_Ack
public class CEMI_Connection_Ack
extends java.lang.Object
This class is the implementation of the EIBNET/IP Tunnelling Acknowledge
message. It can be used for parsing as well as creating new Tunnelling Ack
messages. A Tunnelling Ack is sent in answer to a Tunnelling Request, and
acknowledges therefore the reception of the message over the IP channel, not
the successful transmission on the EIB bus.
CEMI_Connection_Ack(byte[] _Tunnelling_Ack) - Initializes a new object by parsing a byte array.
|
CEMI_Connection_Ack(short _AckType, short _Channelid, short _Sequencecounter, short _Status) - Initializes a new object for sending.
|
CEMI_Connection_Ack
public CEMI_Connection_Ack(byte[] _Tunnelling_Ack)
Initializes a new object by parsing a byte array. Pass all bytes after
the EIBnet/IP header.
_Tunnelling_Ack
- The message body byte array (after EIBnet/IP header)
CEMI_Connection_Ack
public CEMI_Connection_Ack(short _AckType,
short _Channelid,
short _Sequencecounter,
short _Status)
Initializes a new object for sending. All needed values are passed as
parameters.
_AckType
- The acknowledge message code. (Tunnelling Ack vs. Management
Ack)_Channelid
- The current connection channelid._Sequencecounter
- The sending sequence counter._Status
- The error status.
getChannelid
public short getChannelid()
Returns the encapsulated connection channel ID.
getSequencecounter
public short getSequencecounter()
Returns the message sequence counter.
getStatus
public short getStatus()
Returns the error status of this message
getStatusString
public String getStatusString()
Offers a human readable status string.
toByteArray
public byte[] toByteArray()
throws EICLException
Returns a byte representation of the message. If something goes wrong an
Exception is returned.
- Byte array representation of this message