tuwien.auto.eicl.struct.eibnetip
Class Connect_Response
java.lang.Object
tuwien.auto.eicl.struct.eibnetip.Connect_Response
public class Connect_Response
extends java.lang.Object
This class is used to parse a EIBnet/IP Connect Response. A Connect Response
is sent in answer to a Connect Request. The status byte informs about the
request success.
Connect_Response(byte[] _Data) - This constructor inits the object by parsing a received byte array
message.
|
CRI_CRD | getCRICRD() - Get the Connection request information data block
|
short | getChannelID() - Returns the connection channel ID (1 byte) if the connection was
established successfully.
|
HPAI | getDataEndPoint() - Get the servers data end point.
|
short | getStatus() - Extracts the message status byte.
|
String | getStatusString() - Returns a human readable representation of the error codes.
|
Connect_Response
public Connect_Response(byte[] _Data)
throws EICLException
This constructor inits the object by parsing a received byte array
message. Pass all bytes after the EIBnet/IP Header to this constructor.
_Data
- The byte array starting after the EIBnet/IP header.
EICLException
- If an error occured by parsing the encapsulated fields.
getCRICRD
public CRI_CRD getCRICRD()
Get the Connection request information data block
- The connection request information data block.
getChannelID
public short getChannelID()
Returns the connection channel ID (1 byte) if the connection was
established successfully.
- The connection channel identifier.
getDataEndPoint
public HPAI getDataEndPoint()
Get the servers data end point.
getStatus
public short getStatus()
Extracts the message status byte. The status byte gives information about
the request success.
getStatusString
public String getStatusString()
Returns a human readable representation of the error codes.
- The error in a human readable form.