tuwien.auto.eicl.struct.eibnetip

Class 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.
See Also:
Connect_Request, CEMI_Connection

Constructor Summary

Connect_Response(byte[] _Data)
This constructor inits the object by parsing a received byte array message.

Method Summary

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.

Constructor Details

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.
Parameters:
_Data - The byte array starting after the EIBnet/IP header.
Throws:
EICLException - If an error occured by parsing the encapsulated fields.

Method Details

getCRICRD

public CRI_CRD getCRICRD()
Get the Connection request information data block
Returns:
The connection request information data block.
See Also:
CRI_CRD

getChannelID

public short getChannelID()
Returns the connection channel ID (1 byte) if the connection was established successfully.
Returns:
The connection channel identifier.

getDataEndPoint

public HPAI getDataEndPoint()
Get the servers data end point.
Returns:
data endpoint

getStatus

public short getStatus()
Extracts the message status byte. The status byte gives information about the request success.
Returns:
Returns the status byte

getStatusString

public String getStatusString()
Returns a human readable representation of the error codes.
Returns:
The error in a human readable form.