tuwien.auto.eicl.struct.eibnetip
Class Disconnect_Request
java.lang.Object
tuwien.auto.eicl.struct.eibnetip.Disconnect_Request
public class Disconnect_Request
extends java.lang.Object
This class encapsulates a representation of a EIBnet/IP Disconnect Request
message. This message is sent by the requesting side for closing a
established connection, and is answered with a Disconnect Response message.
Disconnect_Request(byte[] _Disconnect_Request) - This constructor parses a byte array.
|
Disconnect_Request(short _Channelid, int _LocalPort) - This constructor is used for outgoing requests.
|
short | getChannelID() - Returns the channel ID of the connection being closed.
|
HPAI | getEndPoint() - Get the client end point.
|
short | getReserved() - Returns the reserved byte of this message (never used).
|
byte[] | toByteArray() - The byte array representation of this message.
|
Disconnect_Request
public Disconnect_Request(byte[] _Disconnect_Request)
throws EICLException
This constructor parses a byte array. It is used for incoming requests.
Pass all bytes after the EIBnet/IP header to this constructor.
_Disconnect_Request
- The byte array starting after EIBnet/IP header
Disconnect_Request
public Disconnect_Request(short _Channelid,
int _LocalPort)
throws EICLException
This constructor is used for outgoing requests. It creates a new Request
with the given parameters. Use this for outgoing requests.
_Channelid
- the channelid_LocalPort
- the local client port
EICLException
- forwards the EICLException thrown by the HPAI constructor
getChannelID
public short getChannelID()
Returns the channel ID of the connection being closed.
- The connection channel ID.
getEndPoint
public HPAI getEndPoint()
Get the client end point.
getReserved
public short getReserved()
Returns the reserved byte of this message (never used).
toByteArray
public byte[] toByteArray()
throws EICLException
The byte array representation of this message.
- The byte array of this message.